we should save newLocation to local storage or a "session" variable otherwise the next request will just get 302ed again.