mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix(core): oauth links should have origin prefix in desktop (#8150)
This commit is contained in:
@@ -48,7 +48,10 @@ function OAuthProvider({ provider }: { provider: OAuthProviderType }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
href={`/oauth/login?provider=${provider}`}
|
href={
|
||||||
|
(environment.isDesktopEdition ? runtimeConfig.serverUrlPrefix : '') +
|
||||||
|
`/oauth/login?provider=${provider}`
|
||||||
|
}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user