0

I'm wondering if it is possible to store multiple browser histories, one for each section of the page.

Let's say I have the following routes: /home, /profile. And inside /profile I can go to /profile/edit.

So if I navigate to /home, then /profile, then to /profile/edit and then I press the back button (or navigate(-1)), it works fine and returns me to /profile.

PROBLEM: If I navigate to /home, then /profile, then /profile/edit, then /home, then /profile/edit again and hit the back button it will send me to /home, as it is the last route on the history. However the desired functionality would be that it returns me to /profile, as it is the last route on the profile-history.

In this way, I would like to have independent histories for home and profile. Any possible solution?

amarse
  • 19
  • 3

0 Answers0