bide icon indicating copy to clipboard operation
bide copied to clipboard

query params go before the hash

Open jiangts opened this issue 7 years ago • 2 comments

When using the hash parameter setting, bide creates URLs that position the search (the ?... fragment) AFTER the hash fragment. In fact, it should be the other way around (see below).

https://superuser.com/questions/498617/does-an-anchor-tag-come-before-the-query-string-or-after

jiangts avatar Jan 26 '19 19:01 jiangts

I would disagree; this is actually very useful behavior as it allows me to pass arguments in a more flexible way; the reload behavior can be controlled by me and I don't have to know all params a route will take in advance. You can still use the "real" query parameters, no?

rrrnld avatar Jan 30 '19 18:01 rrrnld

so I'm using the router to define both html5 history routes on the client side, as well as to define API endpoints I want to hit on the server.

When the query params are in the wrong place, my server's query parser can't find the params so I can't send params in my GET requests.

jiangts avatar Feb 05 '19 22:02 jiangts