How to close or replace duplicate routes?

route A -> route B -> route C

now we have three opened routes and active route is route C which has route A’s. link we click on it and, how to:
route B -> route C -> route A
and not:
route A -> route B -> route C -> route A //duplication

one route of type per view and if duplicate replace with new

You can directly modify router.history array

1 Like