FIX wrong URL in pushState if server redirects XHR request to another address.

$url should be the returned by server if XHR has done loaded page
content.