Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query params go before the hash #21

Open
jiangts opened this issue Jan 26, 2019 · 2 comments
Open

query params go before the hash #21

jiangts opened this issue Jan 26, 2019 · 2 comments

Comments

@jiangts
Copy link

jiangts commented Jan 26, 2019

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

@rrrnld
Copy link
Contributor

rrrnld commented Jan 30, 2019

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?

@jiangts
Copy link
Author

jiangts commented Feb 5, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants