angular/angular.js — pull request #848 by tleruitte (2012-04-03 13:59:25+00:00)
Title: $location: links to different base paths should not be rewritten but fully reloaded by the browser

Let's consider an angular app that is deployed at dom.tld/app1 and which use the html5 mode of the $location service. In such a configuration, the header section of the index file should contain a tag, and thus the base path of the app1 is known.

For now, links that go to the same domain (dom.tld) are rewritten by the $location service, unless if the link contains the directive 'ng-ext-link' or the attribute 'target'.

This pull request prevents links that go to the same domain but to other bases to be rewritten by the $location service. Thus, links such as dom.tld/app2/... will not be rewritten and will cause a full browser reload.

(I've also noticed that the 'ng-ext-link' directive doesn't compile with the new $compiler system since the 1.0.0 and it hard-coded. For instance, it is not possible to use the several directive syntaxes with this directive.)