Files
zitadel/apps
Max PeintnerandLivio Spring a10d13e2ec fix(login): use constructUrl for implicit IdP success/failure URLs (#11389)
Closes #11386

# Which Problems Are Solved

This PR fixes an issue where the `successUrl` and `failureUrl` for
implicit IdP flows (initiated via OIDC `idp🆔...` scopes) were being
constructed using `request.nextUrl.origin`. This failed to account for:
- `x-zitadel-forward-host` headers (essential for proper public URL
resolution).
- `NEXT_PUBLIC_BASE_PATH` configuration.

# How the Problems Are Solved

The fix replaces the manual string concatenation with the shared
`constructUrl` helper, ensuring consistent and correct URL generation.

Co-authored-by: Livio Spring <livio.a@gmail.com>
2026-01-23 05:55:59 +00:00
..