Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-08-02 12:17:00 +06:00 committed by GitHub
parent 1d064072c2
commit 9939a89a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,7 @@
const link = concatLink(calendarUrl, '/signin')
const url = new URL(link)
url.search = new URLSearchParams({
redirectURL: window.location.href
redirectURL: (getMetadata(presentation.metadata.FrontUrl) ?? window.location.origin) + window.location.pathname
}).toString()
const res = await fetch(url.toString(), {
@ -41,7 +41,8 @@
}
})
const redirectTo = await res.text()
window.open(redirectTo, '_self')
window.open(redirectTo)
dispatch('close')
}
</script>

View File

@ -31,7 +31,7 @@
const link = concatLink(gmailUrl, '/signin')
const url = new URL(link)
url.search = new URLSearchParams({
redirectURL: window.location.href
redirectURL: (getMetadata(presentation.metadata.FrontUrl) ?? window.location.origin) + window.location.pathname
}).toString()
const res = await fetch(url.toString(), {
@ -42,7 +42,8 @@
}
})
const redirectTo = await res.text()
window.open(redirectTo, '_self')
window.open(redirectTo)
dispatch('close')
}
</script>