aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ng/location.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ng/location.js b/src/ng/location.js
index ce11c2fb..9a5a68ba 100644
--- a/src/ng/location.js
+++ b/src/ng/location.js
@@ -119,13 +119,14 @@ function LocationHtml5Url(appBase, basePrefix) {
};
this.$$rewrite = function(url) {
- var appUrl;
+ var appUrl, prevAppUrl;
if ( (appUrl = beginsWith(appBase, url)) !== undefined ) {
+ prevAppUrl = appUrl;
if ( (appUrl = beginsWith(basePrefix, appUrl)) !== undefined ) {
return appBaseNoFile + (beginsWith('/', appUrl) || appUrl);
} else {
- return appBase;
+ return appBase + prevAppUrl;
}
} else if ( (appUrl = beginsWith(appBaseNoFile, url)) ) {
return appBaseNoFile + appUrl;