Skip to content

Commit

Permalink
Merge pull request #180 from lidofinance/fix/links-with-qs-on-infra-v…
Browse files Browse the repository at this point in the history
…ersion

fix(nav link infra version): is active
  • Loading branch information
itaven authored Dec 12, 2023
2 parents 1df5f32 + e092766 commit 9c93c20
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ const routes = [
];
export const Navigation: FC = memo(() => {
const pathname = useRouterPath();
const pathnameWithoutQuery = pathname.split('?')[0];
let pathnameWithoutQuery = pathname.split('?')[0];
if (pathnameWithoutQuery[pathnameWithoutQuery.length - 1] === '/') {
// Remove last '/'
pathnameWithoutQuery = pathnameWithoutQuery.slice(0, -1);
}

return (
<Nav>
Expand Down

0 comments on commit 9c93c20

Please sign in to comment.