Skip to content

Commit

Permalink
Merge pull request #1651 from terrestris/specify-logout-redirect-uri
Browse files Browse the repository at this point in the history
Redirect to login after logout
  • Loading branch information
dnlkoch committed Jun 17, 2024
2 parents 559aed6 + f9acf60 commit bb34523
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/UserMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export const UserMenu: React.FC<UserProps> = (): JSX.Element => {
break;
case 'logout':
if (keycloak) {
keycloak.logout();
keycloak.logout({
redirectUri: keycloak.createLoginUrl()
});
}
break;
default:
Expand Down

0 comments on commit bb34523

Please sign in to comment.