diff --git a/src/auth/OIDCConnector/OIDCProvider.tsx b/src/auth/OIDCConnector/OIDCProvider.tsx index 218bc3def..d91ad0076 100644 --- a/src/auth/OIDCConnector/OIDCProvider.tsx +++ b/src/auth/OIDCConnector/OIDCProvider.tsx @@ -58,7 +58,10 @@ const OIDCProvider: React.FC = ({ 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 }), }),