function urlsEqual(a, b) {
      return a === b || urlResolve(a).href === urlResolve(b).href;
    }
function urlsEqual(a, b) {
      return a === b || urlResolve(a).href === urlResolve(b).href;
    }
function urlsEqual ( a , b ) { return a === b || urlResolve ( a ) . href === urlResolve ( b ) . href ; }
Determine if two URLs are equal despite potentially having different encoding/normalizing such as $location.absUrl() vs $browser.url() See https://github.com/angular/angular.js/issues/16592
Determine if two URLs are equal despite potentially having different encoding / normalizing such as $location . absUrl () vs $browser . url () See https : // github . com / angular / angular . js / issues / 16592