Certain elements "stuck" with page navigation

Hi all,

I am creating a one-page app where I use Nav in the URL to show-unhide certain elements. However, in some cases certain elements seem to get “stuck” and I don’t understand why.

In my example:

  • Starting on the ranking page
  • Click on the picture to open up the profile page
    -Also forwarding nav of the leaderboard page, since profile can be entered from more areas
  • Click on different area - Event page in this case
    -Url changes, but page does not show properly
    -Certain elements stay on the page

This does work correctly when I press the backward button.

Leaderboard page

Profile page

Move to events

thanks in advance!