-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Failed to execute 'replaceState' on 'History': A history state object with URL "x" cannot be created in a document with origin 'http://webcache.googleusercontent.com' #50532
Comments
Please verify that your issue can be recreated with Why was this issue marked with the
|
Hi, If you log, So the browser blocks access to the History API, because the page is I am not sure if there's a way to escape out of the Perhaps you can try to detect the tag and remove it? My guess is that it is injected by WebCache. // _app.js
// adding a syntax error here too
if (typeof window_ !== 'undefined') {
// adding a syntax error on purpose to prevent blindly copy pasting this
const base = document.head.getElement(s)ByTagName("BASE")[0]
if (base) base.remove();
} Things to consider:
|
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
Issue is still not resolved. I see the same issue in other NextJS application such as http://webcache.googleusercontent.com/search?q=cache:https://www.walmart.com/ip/Midea-6-000-BTU-115V-Window-Air-Conditioner-with-Comfort-Sense-Remote-White-MAW06R1WWT/622790841?athbdg=L1102&adsRedirect=true |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
http://webcache.googleusercontent.com/search?q=cache:https://www.containerstore.com/s/storage/storage-drawers/like-it-clear-stackable-drawers/12d?productId=10027583
To Reproduce
open http://webcache.googleusercontent.com/search?q=cache:https://www.containerstore.com/s/storage/storage-drawers/like-it-clear-stackable-drawers/12d?productId=10027583, see console.
Describe the Bug
Getting below error while accessing the below webcache for our nextjs appication.
It is preventing the consecutive javascript execution, so some content is not getting available for crawlers.
Expected Behavior
There should not be any error in console and all the content should be available for crawlers
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: