corrects the URL to update page