File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/features/projects/components Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export default function ProjectSnippet({
111
111
< div
112
112
onClick = { ( ) => {
113
113
router . push (
114
- `/${ project . slug } /${
114
+ `/${ locale } / ${ project . slug } /${
115
115
embed === 'true'
116
116
? `${
117
117
callbackUrl != undefined
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { ParamsContext } from '../../../common/Layout/QueryParamsContext';
7
7
import ProjectTypeIcon from '../ProjectTypeIcon' ;
8
8
import { SetState } from '../../../common/types/common' ;
9
9
import { MapProject } from '../../../common/types/ProjectPropsContextInterface' ;
10
+ import { useLocale } from 'next-intl' ;
10
11
11
12
type PopupClosedData = {
12
13
show : false ;
@@ -32,6 +33,7 @@ export default function Markers({
32
33
} : Props ) : ReactElement {
33
34
let timer : NodeJS . Timeout ;
34
35
const router = useRouter ( ) ;
36
+ const locale = useLocale ( ) ;
35
37
const [ open , setOpen ] = React . useState ( false ) ;
36
38
const buttonRef = React . useRef < HTMLButtonElement > ( null ) ;
37
39
const { embed, callbackUrl } = React . useContext ( ParamsContext ) ;
@@ -47,7 +49,7 @@ export default function Markers({
47
49
} ;
48
50
const goToProject = ( projectSlug : string ) : void => {
49
51
router . push (
50
- `/${ projectSlug } /${
52
+ `/${ locale } / ${ projectSlug } /${
51
53
embed === 'true'
52
54
? `${
53
55
callbackUrl != undefined
You can’t perform that action at this time.
0 commit comments