Replaced call to replace() by call to assign() on location object when
following redirection, to keep navigation history