Hello,
yes, I struggled a bit and found the workaround from @jonananas :
- Current workaround : Not redirecting to subpath after login using Traefik's 401 errors middleware · Issue #1297 · oauth2-proxy/oauth2-proxy · GitHub and Redirected to root after login using oauth2-proxy - #7 by jonananas
I would also suggest following @mariawitch changes following Not routing back to original URL (if not previously logged-in) · Issue #1639 · oauth2-proxy/oauth2-proxy · GitHub