diff options
| author | Thibault Leruitte | 2012-04-04 16:41:50 +0200 | 
|---|---|---|
| committer | Igor Minar | 2012-04-11 17:27:32 -0700 | 
| commit | 0a5050eb3c1f1ed84134f23a44b97a7261114060 (patch) | |
| tree | 80ec2ec9fd80ca8be556fe8f95732256cfb80b3d /src | |
| parent | 7c430c5ed039d7eed8d71bd107708224c1db5c74 (diff) | |
| download | angular.js-0a5050eb3c1f1ed84134f23a44b97a7261114060.tar.bz2 | |
fix($location): don't rewrite links to different base paths
links to different base paths should not be left untouched
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/location.js | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ng/location.js b/src/ng/location.js index 6bed261f..9feee5ad 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -503,6 +503,9 @@ function $LocationProvider(){          var href = elm.attr('href');          if (!href || isDefined(elm.attr('ng-ext-link')) || elm.attr('target')) return; +        // link to different base path +        if (href[0] === '/' && href.indexOf(pathPrefix) !== 0)  return; +          // remove same domain from full url links (IE7 always returns full hrefs)          href = href.replace(absUrlPrefix, '');  | 
