mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-27 02:42:11 +00:00
parent
1d064072c2
commit
9939a89a92
@ -30,7 +30,7 @@
|
|||||||
const link = concatLink(calendarUrl, '/signin')
|
const link = concatLink(calendarUrl, '/signin')
|
||||||
const url = new URL(link)
|
const url = new URL(link)
|
||||||
url.search = new URLSearchParams({
|
url.search = new URLSearchParams({
|
||||||
redirectURL: window.location.href
|
redirectURL: (getMetadata(presentation.metadata.FrontUrl) ?? window.location.origin) + window.location.pathname
|
||||||
}).toString()
|
}).toString()
|
||||||
|
|
||||||
const res = await fetch(url.toString(), {
|
const res = await fetch(url.toString(), {
|
||||||
@ -41,7 +41,8 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
const redirectTo = await res.text()
|
const redirectTo = await res.text()
|
||||||
window.open(redirectTo, '_self')
|
window.open(redirectTo)
|
||||||
|
dispatch('close')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
const link = concatLink(gmailUrl, '/signin')
|
const link = concatLink(gmailUrl, '/signin')
|
||||||
const url = new URL(link)
|
const url = new URL(link)
|
||||||
url.search = new URLSearchParams({
|
url.search = new URLSearchParams({
|
||||||
redirectURL: window.location.href
|
redirectURL: (getMetadata(presentation.metadata.FrontUrl) ?? window.location.origin) + window.location.pathname
|
||||||
}).toString()
|
}).toString()
|
||||||
|
|
||||||
const res = await fetch(url.toString(), {
|
const res = await fetch(url.toString(), {
|
||||||
@ -42,7 +42,8 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
const redirectTo = await res.text()
|
const redirectTo = await res.text()
|
||||||
window.open(redirectTo, '_self')
|
window.open(redirectTo)
|
||||||
|
dispatch('close')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user