Fixed URL update

Now the URL doesn't grow needlessly.