Skip to content

Commit d5a824d

Browse files
authored
Merge pull request #16292 from vector-im/t3chguy/sso_fixes
Use history replaceState instead of redirect for SSO flow
2 parents 8f0537f + d47948f commit d5a824d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vector/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function onTokenLoginCompleted() {
124124
parsedUrl.search = "";
125125
const formatted = url.format(parsedUrl);
126126
console.log(`Redirecting to ${formatted} to drop loginToken from queryparams`);
127-
window.location.href = formatted;
127+
window.history.replaceState(null, "", formatted);
128128
}
129129

130130
export async function loadApp(fragParams: {}) {

0 commit comments

Comments
 (0)