Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Change strictQueryParams default to false? #137
The vast majority of the time, you want to match routes on their path, whether they have query params or not. I would think the number of people wanting strict matching on query params to be very small.
This non-intuitive default means that by default
Now I could be completly off-base and the majority of people actually wants strict query parameters but I can't even think of a case where I would want that.
If changing it is not possible, I suggest moving the "Strict query parameters" paragraph from http://router5.github.io/docs/router-options.html to the top of the page, doubling its font-size and putting a 10px red border to make sure it is visible.
Good suggestion for the docs. That's also fair to say
I also need to document a trick you can use: the router has a
// List query params you expect to be used router.setRootNodePath('?ga_id');