Skip to content

Invalid redirect URI on logout from pages with sub-tab hash fragments - #51055

Merged
edewit merged 1 commit into
keycloak:mainfrom
mabartos:KC-51054
Jul 21, 2026
Merged

Invalid redirect URI on logout from pages with sub-tab hash fragments#51055
edewit merged 1 commit into
keycloak:mainfrom
mabartos:KC-51054

Conversation

@mabartos

Copy link
Copy Markdown
Member

Old behavior

Screencast.From.2026-07-21.09-41-30.mp4

New behavior

Screencast.From.2026-07-21.09-40-31.mp4

@edewit Could you please check it? Thanks!

Closes keycloak#51054

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Copilot AI review requested due to automatic review settings July 21, 2026 07:43
@mabartos
mabartos requested review from a team as code owners July 21, 2026 07:43
@mabartos
mabartos requested a review from edewit July 21, 2026 07:43
@mabartos mabartos self-assigned this Jul 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces nested hash navigation with a query parameter to prevent invalid logout redirect URIs.

Changes:

  • Passes the policy sub-tab through ?tab=.
  • Initializes the active policy tab from search parameters.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
LoginTab.tsx Updates the passkeys settings shortcut URL.
Policies.tsx Reads policy selection from query parameters.

tab: "policies",
}),
hash: WEBAUTHN_PASSWORDLESS_POLICY,
search: `?tab=${WEBAUTHN_PASSWORDLESS_POLICY}`,

@rmartinc rmartinc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mabartos! LGTM!

@edewit
edewit merged commit 36a8741 into keycloak:main Jul 21, 2026
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid redirect URI on logout from pages with sub-tab hash fragments

4 participants