You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled rejection SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL [...] cannot be created in a document with origin 'http://localhost:9000' and URL [...].
Steps to reproduce
Add an extra slash to have two consecutive slashes inside any route of your Aurelia app
Expected behavior
Url should be insensitive to the number of consecutive slashes
Use Case
We have an external partner with a very long release cycle who is calling us with two consecutive slashes
The text was updated successfully, but these errors were encountered:
I'm submitting a bug report
1.3.0
Please tell us about your environment:
Operating System:
Windows 10
NPM Version:
6.4.1
Browser:
At least Chrome 73.0.3683.75 and Internet Explorer
Language:
TypeScript
Current behavior:
When the URL has double slashes (example: http://localhost:9000//route?parm1=... or http://localhost:9000/route1//route2?parm1=...), history.replaceState will remove the double slashes. This will produce the following security error because the two URLs don't match anymore:
Unhandled rejection SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL [...] cannot be created in a document with origin 'http://localhost:9000' and URL [...].
Steps to reproduce
Add an extra slash to have two consecutive slashes inside any route of your Aurelia app
Expected behavior
Url should be insensitive to the number of consecutive slashes
Use Case
We have an external partner with a very long release cycle who is calling us with two consecutive slashes
The text was updated successfully, but these errors were encountered: