fix for $location.path() no-reload patch.