I keep getting a SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http:' cannot be created in a document with origin 'http://localhost:3000' as in the screenshot below:
but I am unsure why. With version 22 of angular alpha I do not get that, but with version 23 I do. Could it be something with parsing the url?
EDIT: I tried debugging a bit and where these lines of code are:
I keep getting a
SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http:' cannot be created in a document with origin 'http://localhost:3000'
as in the screenshot below:but I am unsure why. With version
22
of angular alpha I do not get that, but with version23
I do. Could it be something with parsing the url?EDIT: I tried debugging a bit and where these lines of code are:
I can see that the
url
is//
as the screenshot below shows:I think that might be why I get the error, but could the reason be because of the
url
?NOTE: After further debugging, I think the problem might be somewhere along these lines:
Because the
url
argument in my case is""
, which means thaturl[0] == '/'
condition will not work as expected.