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