Skip to content

Commit a9d556a

Browse files
committed
Land at locale home on / instead of skipping to /menu
The root used to client-redirect straight to /{locale}/menu, leaving the locale home page (where the language picker now lives) unreachable in the diner flow. Redirect to /{locale} instead so diners hit the restaurant landing page first.
1 parent 12866b4 commit a9d556a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/src/app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { useRouter } from "next/navigation";
55
import { defaultLocale } from "@/lib/i18n-config";
66

77
/**
8-
* Root path redirects to the menu in the deployment's default locale.
9-
* Single-tenant model: there is exactly one menu per deployment, served at /{locale}/menu.
8+
* Root path redirects to the localized home page in the deployment's default
9+
* locale. From there the diner picks a language and enters a menu.
1010
*/
1111
export default function RootPage() {
1212
const router = useRouter();
1313

1414
useEffect(() => {
15-
router.replace(`/${defaultLocale}/menu`);
15+
router.replace(`/${defaultLocale}`);
1616
}, [router]);
1717

1818
return null;

0 commit comments

Comments
 (0)