Merge branch 'release/v2.5.0' of github.com:ONLYOFFICE/DocSpace-client into release/v2.5.0

This commit is contained in:
Alexey Safronov 2024-03-20 14:59:15 +04:00
commit a4fa405a46

View File

@ -49,11 +49,17 @@ const Auth = (props) => {
frameCallEvent({ event: "onAuthSuccess" });
const url = searchParams.get("referenceUrl");
if (url) {
try {
new URL(url);
return window.location.replace(url);
} catch {
return window.location.replace(
combineUrl(window.location.origin, url)
combineUrl(window.location.origin, url),
);
}
}
if (typeof res === "string") window.location.replace(res);
else window.location.replace("/");