Skip to content

Commit

Permalink
Merge pull request #2732 from RedHatInsights/master
Browse files Browse the repository at this point in the history
[stable] Update build
  • Loading branch information
Hyperkid123 authored Dec 18, 2023
2 parents 68aa1b9 + 64a9408 commit 6c6c1d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/auth/OIDCConnector/OIDCProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const OIDCProvider: React.FC<React.PropsWithChildren> = ({ children }) => {
response_type: 'code',
response_mode: 'fragment',
onSigninCallback: () => {
window.history.replaceState({}, document.title, window.location.pathname);
const startUrl = new URL(window.location.href);
// remove the SSO code params from the URL
startUrl.hash = '';
window.history.replaceState({}, document.title, startUrl);
},
userStore: new WebStorageStateStore({ store: window.localStorage }),
}),
Expand Down

0 comments on commit 6c6c1d6

Please sign in to comment.