Merge branch 'release/v2.5.0' of github.com:ONLYOFFICE/DocSpace-client into release/v2.5.0
This commit is contained in:
commit
a4fa405a46
@ -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("/");
|
||||
|
Loading…
Reference in New Issue
Block a user