Default location if no back history?
Hi, I'm trying to utilize
How can I provide a default location to navigate to if there is no back history to go to? Or how can I detect if there's history to go back to, so can instead run a
router.history.back() but if the user for whatever reason refreshes the page all of the history they can go back to is gone. Thus causing my back button to just refresh the page.How can I provide a default location to navigate to if there is no back history to go to? Or how can I detect if there's history to go back to, so can instead run a
navigate() to a fallback location?