diff --git a/src/components/Container.tsx b/src/components/Container.tsx index 97ac2e7..4e0e17a 100644 --- a/src/components/Container.tsx +++ b/src/components/Container.tsx @@ -121,7 +121,7 @@ const Container: React.FC<{ }; const current = MenuEntries.findIndex( - ([, path]) => location === path || location.startsWith("${path}" + "/"), + ([, path]) => location === path || location.startsWith(path + "/"), ); const next = get.next(MenuEntries, current)[1]; const prev = get.prev(MenuEntries, current)[1];