Skip to content

Commit b516b2f

Browse files
committed
add locale during redirection
1 parent fac7316 commit b516b2f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/[locale]/manage/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
'use client';
22

33
import React, { useEffect } from 'react';
4-
import { useRouter } from 'next/navigation';
5-
import { Loading } from '@/components/loading';
4+
import { useParams, useRouter } from 'next/navigation';
65

6+
import { Loading } from '@/components/loading';
77

88
const Manage = () => {
9+
const params = useParams();
910
const router = useRouter();
1011

1112
useEffect(() => {
1213
// Redirect to the Use Cases page
13-
router.push('/manage/usecases');
14+
router.push(`/${params.locale}/manage/usecases`);
1415
}, [router]);
1516

1617
return (

0 commit comments

Comments
 (0)