Error: Redirect loop at Y (entry.B2BMVBJ7.js:1:18097)/ route, they are redirected to either the /login or the /dashboard route, depending on the existence of a session. If the user visits the /login route and has a session, they are then redirected to the / route and shortly after the /dashboard route. If the user visits the /dashboard route and has no session, they are redirected to the /login route./login route as expected, but will enter a redirection loop after logging in. It will repeat the sequence / -> /dashboard -> /login infinitely. This is because the #getSession() method returns null when inside the (user) group. This is only the case on production, but not in a local environment.