Closed rtodea closed 3 years ago
👍 I thought I was going crazy. Glad to know someone else has come across this as well
Looks like this is the behaviour in Node too and according to the docs for url.format search
takes precedence over query
.
Whatever node does, this module should do. I'd suggest filing a bug on node itself if you find its behavior surprising.
Consider the following scenario:
Instead if I modify the
.search
everything works as expectedI have not found this behavior documented and I think it breaks POLA.
We have 2 options: