Save and restore route from URL