How do I create this Router behavior?


How can I navigate between pages by removing only the one I want from the doom and then destroy it manually.

For example: “/ hello / goodbye / good / greetings (Active)” I navigate to “/ hello / goodbye (Active) / good / greetings” and come back.

I have to simulate the navigation bar of this template:

Thank you.