Thursday, 8 August 2013

Why is AngularJS duplicating the query string in my route?

Why is AngularJS duplicating the query string in my route?

I am using hash-based navigation in my AngularJS app rooted at /.
If a user navigates to my app like this:
http://example.com/?foo
A moment after the page loads, something (possibly Angular) is causing the
address bar to appear thusly:
http://example.com/?foo#/?foo
Why is this happening, and can I turn it off?

No comments:

Post a Comment