When enabling this option, the login redirect will happen based on the current browser URL as seen by Jenkins.
This URL must be declared as an Authorized redirect URIs in the GCP Console.
This may fail when using Jenkins behind a reverse proxy, if it is not configured properly (read Running Jenkins behind Apache for more information).