Hi Guys,
I have a really frustrating situation. I have a button that suppose to link me to a different page within the app, when I click it it will navigate to the page but the Navigation Bar wont change to the page I navigated to.
const navigate = useNavigate();
const handleClick = () => {
navigate(`../sections`, { replace: true });
};
<Button onClick={handleClick} primary>
Go to App home screen
</Button>
<ui-nav-menu>
<Link to="/app" rel="home">
Home
</Link>
<Link to="/app/mysections">My Sections</Link>
<Link to="/app/sections">Sections</Link>
</ui-nav-menu>
The url in the address bar is changed, if I will refresh than the navigation bar will be correct, but without refresh it stays in the old page nav menu item