URL gets updated correctly