mirror of
https://github.com/outline/outline.git
synced 2026-11-27 07:58:51 +03:00
fix: Desktop redirect on Safari
This commit is contained in:
1 parent
63cef45284
commit
648424fe2c
1 file changed
+4
-1
@@ -14,7 +14,10 @@ const DesktopRedirect = () => {
|
||||
|
||||
React.useEffect(() => {
|
||||
if (token) {
|
||||
window.location.href = `outline://${window.location.host}/auth/redirect?token=${token}`;
|
||||
window.open(
|
||||
`outline://${window.location.host}/auth/redirect?token=${token}`,
|
||||
"_self"
|
||||
);
|
||||
|
||||
// Clean the url so it's not possible to hit reload, re-using the transfer token will not work.
|
||||
window.location.search = "";
|
||||
|
||||
Reference in new issue
Block a user