-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Incorrect handling of protocol relative URLs #241
Comments
I've noticed this as well. Protocol-less URLs are an awesome feat to have if making your page available both with http and https. I'll submit a pull request in a few minutes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in Firefox and Chrome, history.pushState('//example.com/foo') will be equivalent to history.pushSate('/foo') bringing you to 'http://example.com/foo'.
In history.js, history.pushState('//example.com/foo') brings you to 'http://example.com/example.com/foo'. History.js should recognize that as a protocol relative URL and treat it accordingly.
The text was updated successfully, but these errors were encountered: