-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Navigating to AMP-enabled sites on IE/Edge adds "undefined" to the url #743
Comments
thanks for reporting! will take a look |
@petetnt confirmed. ANY amp page right now seems to trigger a url change to /undefined on Edge and IE11. /cc @cramforce @dvoytenko |
looks like this is caused by https://github.com/ampproject/amphtml/blob/master/src/history.js#L285 (call to the browsers native replace state). unsure yet why it's happening |
looks like passing in |
@erwinmombay cool, I though it could be something that affected all the AMP sites but didn't have the time to check yesterday 👍 I noticed something else too: it coerces Booleans to strings too so It's not AMP's job to work around browser bugs, but I guess all of those kinds of weird behaviors (like someone accidentally passing
(Actually it turns out that you can pass pretty much anything as the URL and browsers will comply) |
@petetnt thanks. that scenario should be caught once we get the closure compiler running so the only things that should come through as |
Sounds good to me 👍 |
Steps to reproduce:
document.location.href
is now https://ampproject.org/undefinedTested on Edge, IE11, Windows Phone 8.1 IE11.
This creates some unwanted effects, such as reloading leading to a 404 page.
The text was updated successfully, but these errors were encountered: