diff --git a/src/frontend/src/components/nav/Header.tsx b/src/frontend/src/components/nav/Header.tsx index 0d4fa9fd09..22320c24ae 100644 --- a/src/frontend/src/components/nav/Header.tsx +++ b/src/frontend/src/components/nav/Header.tsx @@ -3,7 +3,7 @@ import { useDisclosure } from '@mantine/hooks'; import { IconBell, IconSearch } from '@tabler/icons-react'; import { useQuery } from '@tanstack/react-query'; import { useState } from 'react'; -import { useNavigate, useParams } from 'react-router-dom'; +import { useMatch, useNavigate, useParams } from 'react-router-dom'; import { api } from '../../App'; import { navTabs as mainNavTabs } from '../../defaults/links'; @@ -100,8 +100,9 @@ export function Header() { function NavTabs() { const { classes } = InvenTreeStyle(); - const { tabValue } = useParams(); const navigate = useNavigate(); + const match = useMatch(':tabName/*'); + const tabValue = match?.params.tabName; return (