I have some nested routes, and I need to navigate back "a level up" so to say.
I'm using react-router-dom v5.3.1
history.goBack() will take me to last visited page, as if I use the back button in the browser. I don't need this.
Imagine my history looks something like this...:
[
dashboard/1/sub-page/7
dashboard/1/sub-page/13
dashboard/1/sub-page/9
dashboard/1/sub-page/1
]
My browser URL is: localhost:8080&app.html#/dashboard/1/sub-page/7
Does react-router-dom provide a safe way for navigating to: localhost:8080&app.html#/dashboard/1 - or what would be a decent approach here?