Skip to content

Commit

Permalink
Merge pull request #16292 from vector-im/t3chguy/sso_fixes
Browse files Browse the repository at this point in the history
Use history replaceState instead of redirect for SSO flow
  • Loading branch information
t3chguy authored Jan 29, 2021
2 parents 8f0537f + d47948f commit d5a824d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function onTokenLoginCompleted() {
parsedUrl.search = "";
const formatted = url.format(parsedUrl);
console.log(`Redirecting to ${formatted} to drop loginToken from queryparams`);
window.location.href = formatted;
window.history.replaceState(null, "", formatted);
}

export async function loadApp(fragParams: {}) {
Expand Down

0 comments on commit d5a824d

Please sign in to comment.