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

Why only match a.pathname in the click handler? #75

Open
QingYun opened this issue May 5, 2016 · 2 comments
Open

Why only match a.pathname in the click handler? #75

QingYun opened this issue May 5, 2016 · 2 comments

Comments

@QingYun
Copy link

QingYun commented May 5, 2016

I have an anchor points to a page like href="foo.html?bar=baz" and I really need that query string. Unfortunately, it got ignored in the navigator.

@hojberg
Copy link
Contributor

hojberg commented May 6, 2016

You need that queryString to match a route? Or does it simply include data that you need?
Though we don't match on queryStrings they should be sent to the matching route with the full url..

Can you tell me more about what and why so I understand the need better please? :)

@QingYun
Copy link
Author

QingYun commented May 6, 2016

I use it to pass data. The situation is I'm refactoring a small all-static site, which is basically a set of slides written as web pages, and my goal is to make them switching smoothly. So the HTML template rendering part has been moved to the front end. The data source is an array of objects, one object for one page. The problem is that the name of prerendered HTML file at the back end is actually kind of a hash of its data object. That means I cannot know which data object to use if I only got that hash from Aviator. I have to either maintain a hash to index map or pass the index as a part of its URL, and I chose the latter. That's the story.

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