(created from CONF-14641)
Andrew Lynch fixed SER-126 by adding a redirect for logged-in users. However, if an instance has a custom login page with a redirect, the response will attempt to add a redirect to a redirect and throw an error.
Related support case CSP-28990
Redirect that works in 2.9 is broken in later Confluence versions
Allow login.action?os_destination=DEST to work for already logged in users