diff --git a/src/PageNav.tsx b/src/PageNav.tsx index 0aaf4644bf..bb76742db5 100644 --- a/src/PageNav.tsx +++ b/src/PageNav.tsx @@ -44,12 +44,15 @@ export const PageNav: React.FunctionComponent = () => { (route) => route.path.substr("/:realm".length) === path ); if (!route || !hasAccess(route.access)) return <>; - const activeItem = history.location.pathname; + //remove "/realm-name" from the start of the path + const activeItem = history.location.pathname.substr(realm.length + 1); return ( {t(title)}