The previous-button of locality detail currently works through react-routers navigate(-1) which corresponds to clicking browsers previous-button.
If user enters this view through direct link, this will either do nothing or throw user to some other page. Likely we want it to bring the user to the table-view, even though the page obviously cannot be known there.
The usual react libraries do not let us access the history stack, so we can't check if the url was the table or not. A solution could be to somehow bring in the information that the view was entered through table, and if not, then instead of navigate(-1) we can navigate to the table view.
The previous-button of locality detail currently works through react-routers
navigate(-1)
which corresponds to clicking browsers previous-button.If user enters this view through direct link, this will either do nothing or throw user to some other page. Likely we want it to bring the user to the table-view, even though the page obviously cannot be known there.
The usual react libraries do not let us access the history stack, so we can't check if the url was the table or not. A solution could be to somehow bring in the information that the view was entered through table, and if not, then instead of navigate(-1) we can navigate to the table view.