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

Exhibit history mechanism inappropriately clears query portion of url #98

Open
karger opened this issue Oct 12, 2012 · 0 comments
Open

Comments

@karger
Copy link
Contributor

karger commented Oct 12, 2012

When exhibit's query mechanism initializes it erases the query-string part from the url, which makes it impossible to reload the page you just loaded.

As part of its initialization, Exhibit.History identifies the original document location as
Exhibit.History._originalLocation = Exhibit.Persistence.getURLWithoutQueryAndHash();
then during initialization it invokes pushState() which sets
url = Exhibit.History._originalLocation;
and then passes url to history.pushState, which updates the location to url, thus erasing the query string.

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

No branches or pull requests

1 participant