mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00: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 (
|
||||
<a
|
||||
href={`/oauth/login?provider=${provider}`}
|
||||
href={
|
||||
(environment.isDesktopEdition ? runtimeConfig.serverUrlPrefix : '') +
|
||||
`/oauth/login?provider=${provider}`
|
||||
}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user