mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
parent
1d064072c2
commit
9939a89a92
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user