Fix for saving URL to session