There is a bug that happens sometimes when a user navigates to a new page, the back button sometimes ends up being the same page that the user is currently on. If the back button might be set to the same page the user is currently on, instead use the index route that matches the current route.