SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 72 JavaScript

fix($brower): set the url even if the browser transforms it

While $location expects that $browser stores the URL unchanged, "some browsers" transform the URL
when setting or defer the acutal update. To work around this, $browser.url() kept the unchanged
URL in pendingLocation.

However, it failed to update pendingLocation in all code paths, causing
$browser.url() to sometimes incorrectly report previous URLs, which horribly confused $location.

This fix ensures that pendingLocation is always updated if set, causing url() to report the
current url.

Fixes #14427
Closes #14499
A
Adrian Moos committed
743b33ab9d8cdb8aa6ff28028a54ac0023f4dc15
Parent: 9f8fa79
Committed by Peter Bacon Darwin <pete@bacondarwin.com> on 5/20/2016, 2:44:53 PM