function urlsEqual(a, b) {
      return a === b || urlResolve(a).href === urlResolve(b).href;
    }
@ngdoc event
@name $location#$locationChangeSuccess
@eventType broadcast on root scope
@description
Broadcasted after a URL was changed.

The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
the browser supports the HTML5 History API.

@param {Object} angularEvent Synthetic event object.
@param {string} newUrl New URL
@param {string=} oldUrl URL that was before it was changed.
@param {string=} newState New history state object
@param {string=} oldState History state object that was before it was changed.