mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #16292 from vector-im/t3chguy/sso_fixes
Use history replaceState instead of redirect for SSO flow
This commit is contained in:
commit
d5a824d6dd
@ -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: {}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user