Skip to content
Permalink
Browse files

refactor($location): Simplify expression.

  • Loading branch information
lgalfaso committed May 28, 2016
1 parent f58d4fb commit cfc8b41771e6f2f5bcf692400e960144009b1f18
Showing with 1 addition and 1 deletion.
  1. +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;

0 comments on commit cfc8b41

Please sign in to comment.
You can’t perform that action at this time.