Skip to content

Commit

Permalink
fix(core): oauth links should have origin prefix in desktop (#8150)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Sep 6, 2024
1 parent 84ebe62 commit 817842c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/frontend/core/src/components/affine/auth/oauth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down

0 comments on commit 817842c

Please sign in to comment.