Skip to content

Commit

Permalink
fix(): not fires with browser back when path ends with '/#'. angular#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsivabalan committed Sep 15, 2015
1 parent 9e6a9b9 commit eeba7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ng/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -922,12 +922,12 @@ function $LocationProvider() {
$location.$$parse(newUrl);
$location.$$state = newState;

defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl,
defaultPrevented = $rootScope.$broadcast('$locationChangeStart', trimEmptyHash(newUrl), oldUrl,
newState, oldState).defaultPrevented;

// if the location was changed by a `$locationChangeStart` handler then stop
// processing this location change
if ($location.absUrl() !== newUrl) return;
if ($location.absUrl() !== trimEmptyHash(newUrl)) return;

if (defaultPrevented) {
$location.$$parse(oldUrl);
Expand Down

0 comments on commit eeba7f9

Please sign in to comment.