Modify the URL when changing routes.