Users stuck in a redirection loop with /users/sign_up/groups/new

Summary

Users can end up stuck in a redirection loop after signing in, getting an error gitlab.com redirected you too many times, even after a successful login.

This was reported in a ticket (Internal Link)

Inspecting this, we could see the user being redirected to [https://gitlab.com/users/sign_up/welcome](https://gitlab.com/users/sign_up/groups/new) many time until they get the error "_error": "net::ERR_TOO_MANY_REDIRECTS"

Steps to reproduce

Not able to reproduce

What is the current bug behavior?

user gets into a redirection loop after login and ends up getting an error gitlab.com redirected you too many times

What is the expected correct behavior?

user is either redirected to complete the onboarding process or successfully accessing their projects dashboard

Relevant logs and/or screenshots

More details can be found in the RFH (Internal Link) And also in this internal request (Internal Link)

Output of checks

This bug happens on GitLab.com

Possible fixes

see https://gitlab.com/gitlab-com/support/internal-requests/-/issues/25780#note_2356270019

Edited by Doug Stull