Redirecting from /user/details to /api/auth/login?redirectAfterLogin=/user/details