Closed rgero closed 4 months ago
I'm solving this by using the "useLocation" hook from react-router-dom.
The logic for it is that if the key is "default" that means that there is no history. The user got to this page from an external place. As such, they need to be sent back to the search page directly rather than using the -1 value.
Currently if the user creates a brand new tab and goes directly to the Queue page, there is no history for them to go back to. So they need to have an actual redirect to the search page.