Investigate incorrect relayState/redirect url post SAML sign in for GitLab team members

A few team members have reported not correct being redirected to the original destination URL, after they sign in with Okta (group SAML SSO). The behaviour is not consistent, though when redirected to the incorrect route, it tends to be a URL visited earlier.

For example accessing https://gitlab.com/groups/gitlab-com/gl-security/security-operations/trust-and-safety/-/work_items/100#note_2646388062 for the user cablett routed them to #196066 (closed) which matches the relaystate

Screenshot_2025-07-24_at_7.17.10_AM

Note: A change/FF around identifying current URl and then setting it in relayState will potentially cause the issue, and may not be a change within SAML itself