Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

AngularJS 1.1.5: Incorrect $location.$$path in HTML5 mode with paths with slashes. #3145

Closed
tyscorp opened this issue Jul 5, 2013 · 1 comment

Comments

@tyscorp
Copy link

tyscorp commented Jul 5, 2013

If you have a route "http://www.example.com/path/here", it loads correctly when navigating to the route from a previous route.

However, if you try to go to "http://www.example.com/path/here" from the URL bar or by refreshing the page, $location.$$path is set to the last word in the URL. $location.$$path is "/here", when it should be "/path/here".

This is worked around by adding <base href="/"> to the head of the main page.

@pkozlowski-opensource
Copy link
Member

Duplicate of #2799

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants