# Keycloak JS 26.2.2 released

DevFeed: [Keycloak JS 26.2.2 released](<https://devfeed.tech/articles/keycloak-js-26-2-2-released-31741.md>)

Original publisher: [Read original article](<https://www.keycloak.org/2025/12/keycloak-js-2622-released>)

Author: Keycloak Team

Published: 2025-12-11T00:00:00Z

Content type: release

Language: en

Sources: [Keycloak Blog](<https://devfeed.tech/sources/keycloak-blog.md>)

Topics: [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [OpenID connect (OIDC)](<https://devfeed.tech/topics/oidc.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [bug-fixes](<https://devfeed.tech/tags/bug-fixes.md>), [idm](<https://devfeed.tech/tags/idm.md>), [kerberos](<https://devfeed.tech/tags/kerberos.md>), [keycloak](<https://devfeed.tech/tags/keycloak.md>), [keycloak-js-release](<https://devfeed.tech/tags/keycloak-js-release.md>), [ldap](<https://devfeed.tech/tags/ldap.md>), [oidc](<https://devfeed.tech/tags/oidc.md>), [openid-connect](<https://devfeed.tech/tags/openid-connect.md>), [release](<https://devfeed.tech/tags/release.md>), [routing](<https://devfeed.tech/tags/routing.md>), [saml](<https://devfeed.tech/tags/saml.md>), [security](<https://devfeed.tech/tags/security.md>), [sso](<https://devfeed.tech/tags/sso.md>)

## AI overview

Keycloak JS 26.2.2 fixes regressions affecting public method destructuring, hash fragments and trailing slashes in redirect URIs, and redirects from different domains. The release also notes a planned future restriction on redirect URLs to help prevent open redirects.

## Source excerpt

Highlights This release of Keycloak JS focuses on addressing several regressions that were introduced by accident. We apologize for any inconvenience these issues may have caused and thank our community for reporting them quickly and helping to verify the fixes. Bug Fixes Destructuring public methods now works correctly A regression was introduced that caused an error when destructuring public methods from a Keycloak instance. This pattern is commonly used in applications: const { login, logout } = keycloak; login(); // Previously failed with "Cannot read properties of undefined" This issue has been resolved by binding all public methods to the class instance using arrow functions, ensuring that this is always correctly scoped regardless of how the method is called. keycloak/keycloak-js#202 Hash fragments are now preserved in redirect URIs A regression caused hash fragments in URLs to be stripped from redirect URIs, which broke navigation in applications that rely on fragment-based routing. For example, when logging in to the Keycloak Admin Console with a URL like http://localhost:8080/admin/master/console/#/demo/users/add-user, the user would be redirected to the default page instead of the intended fragment after authentication. This also caused issues where redirect URIs would have a trailing slash added unexpectedly, breaking login flows for OIDC servers that perform strict URI matching. The next major of Keycloak JS will start re-enforcing this constraint, as it is not allowed to pass fragments according to the specification. keycloak/keycloak-js#151, keycloak/keycloak-js#205 Redirect URLs on different domains now work correctly A regression prevented redirect URLs from being on a different domain than the application origin the navigation to fail with a security error. This affected users who use redirect services that forward authentication requests from an intermediate domain back to the application. This behavior is likely to be changed in the future to onl