Permalink
Browse files
refactor($location): Simplify expression.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/ng/location.js
|
|
@@ -912,7 +912,7 @@ function $LocationProvider() { |
|
|
// update $location when $browser url changes |
|
|
$browser.onUrlChange(function(newUrl, newState) { |
|
|
|
|
|
if (isUndefined(stripBaseUrl(appBaseNoFile, newUrl))) { |
|
|
if (!startsWith(newUrl, appBaseNoFile)) { |
|
|
// If we are navigating outside of the app then force a reload |
|
|
$window.location.href = newUrl; |
|
|
return; |
|
|
|