Fix the url redirect after login