I'm using react-router's BrowserRouter
for appliying routing in my react app.
However, I realized that when the URL changes, that change is not reflected in window.location
.
For example when my app is loaded, the window.location.search
is empty. When I click on tickets menu to go to example.com/tickets
the window.location.search
is still empty.
Is there a configuration to force react-router to fill window.location
properties?