So I am using React Router v3. Say I go from route A to route B. Then pressing the back button I can go back to A but how do I disable going to B again pressing the forward button. Going to B via a Link
in the application or programmatically is fine. But I don't want the application to be able to go forward using the browser's forward button.
I assume it will be something like removing the last element of the route stack but I can't seem to get my head around it. Any help will be appreciated.