Merge pull request #16292 from vector-im/t3chguy/sso_fixes

Use history replaceState instead of redirect for SSO flow
This commit is contained in:
Michael Telatynski 2021-01-29 13:29:02 +00:00 committed by GitHub
commit d5a824d6dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ function onTokenLoginCompleted() {
parsedUrl.search = ""; parsedUrl.search = "";
const formatted = url.format(parsedUrl); const formatted = url.format(parsedUrl);
console.log(`Redirecting to ${formatted} to drop loginToken from queryparams`); console.log(`Redirecting to ${formatted} to drop loginToken from queryparams`);
window.location.href = formatted; window.history.replaceState(null, "", formatted);
} }
export async function loadApp(fragParams: {}) { export async function loadApp(fragParams: {}) {