Fixed redirection after login in production.