diff options
| author | Igor Minar | 2013-06-13 22:25:00 -0700 | 
|---|---|---|
| committer | Brian Ford | 2013-08-12 16:23:38 -0700 | 
| commit | cbe31d8dfd12ce973c574bfc825ffc0ffb8eb7c4 (patch) | |
| tree | cc83f42b2cf7e841c03f9628eab91f2187dd1b7a /src | |
| parent | 06b0930b6a821bdfed78875f821baf1b8ede2442 (diff) | |
| download | angular.js-cbe31d8dfd12ce973c574bfc825ffc0ffb8eb7c4.tar.bz2 | |
fix($location): default to / for the url base if no base[href]
With the recent refactoring of $location service we changed this behavior
resulting in a regression.
Previously we thought that html5 mode always required base[href]
to be set in order for urls to resolve properly. It turns out that
base[href] is problematic because it makes anchor urls (#foo) to
always resolve to the base url, which is almost always incorrect
and results in all anchors links and other anchor urls (e.g. svg
references) to be broken.
For this reason, we should now start recommending that people just
deploy to root context (/) and not set the base[href] when using
the html5 mode (push/pop history state).
If it's impossible to deploy to the root context then either all
urls in the app must be absolute or base[href] must be set with the
caveat that anchor urls in such app won't work.
Closes #2762
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
