In some cases when you get logged out after being on the build/job console log page, are automatically redirected and asked to log back in, when you log back in you are redirected to the raw job log, rather than to either the dashboard or the Job/Build details where you were earlier.
It's unclear if this happens with direct login, or only OIDC/OAuth2 style plugins. I've also only seen it with the Gitlab plugin, possibly because it does not support re-authentication so it happens more often.
What should happen is that you are redirected back to where you were; or at the very least part of the UI, NOT a raw job log.
GoCD version: 24.5.0
Auth plugin: Gitlab Authentication plugin