I find it hard to use window.location.search together with HashRouter as it always ends up like this: localhost:3000/?id=1#/person
With BrowserRouter it was no problem using window.location.search. Is there any way to make search params appear like this with HashRouter: localhost:3000/#/person?id=1