We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fbf584 commit 77ff108Copy full SHA for 77ff108
src/ng/location.js
@@ -119,13 +119,14 @@ function LocationHtml5Url(appBase, basePrefix) {
119
};
120
121
this.$$rewrite = function(url) {
122
- var appUrl;
+ var appUrl, prevAppUrl;
123
124
if ( (appUrl = beginsWith(appBase, url)) !== undefined ) {
125
+ prevAppUrl = appUrl;
126
if ( (appUrl = beginsWith(basePrefix, appUrl)) !== undefined ) {
127
return appBaseNoFile + (beginsWith('/', appUrl) || appUrl);
128
} else {
- return appBase;
129
+ return appBase + prevAppUrl;
130
}
131
} else if ( (appUrl = beginsWith(appBaseNoFile, url)) ) {
132
return appBaseNoFile + appUrl;
0 commit comments