I’m using BrowserRouter in an React Ionic App and to navigate to specific components.
I tried to add a Back Button to the Ionic-Header → however clicking on the doesn’t seem to fill the history and therefore the Back Button isn’t appearing.
I’m using BrowserRouter in an React Ionic App and to navigate to specific components.
I tried to add a Back Button to the Ionic-Header → however clicking on the doesn’t seem to fill the history and therefore the Back Button isn’t appearing.
I think if you add a default href it will display regardless of the history. Hopefully that does the trick?
If not though I’d want to see the code that’s not working.
<IonBackButton defaultHref="home" />
sure, this works.
However it’s not what I intent to achieve - I would like to navigate one level back, not to the home screen.