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

Routing to a query returns to the default route #221

Open
hassanbazzi opened this issue Aug 3, 2017 · 2 comments
Open

Routing to a query returns to the default route #221

hassanbazzi opened this issue Aug 3, 2017 · 2 comments

Comments

@hassanbazzi
Copy link
Member

Demo: http://jsfiddle.net/qc73v9va/49/

If you click Profile, then click the Click me for query link, you'll be redirected to the homepage.

My use case is that I want to be on any route /x/y and then easily attach a query param to it / update it.

Maybe I'm doing this wrong, but I expect route to do that. I can obviously grab the location, but just wondering if this is expected behavior.

@developit
Copy link
Member

Definitely worth adding yup. Technically this is a dupe of #129 - if we supported relative paths in route() and links, route('?foo') would be relative to the current route instead of being treated as /?foo.

@developit
Copy link
Member

developit commented Sep 8, 2017

There's a PR open for the behavior if you're up for reviewing! #138 and my alternative that abuses the DOM to do it, #177.

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