Skip to content

Commit

Permalink
Merge pull request #95 from hanzoai/auth/fix-common-auth
Browse files Browse the repository at this point in the history
Auth: fix auth widget
  • Loading branch information
zeekay committed Apr 18, 2024
2 parents 2ba3dec + 2237770 commit 9fd8e74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/auth/components/auth-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ const AuthWidget: React.FC<{
</Button>
) : (
<LinkElement
def={{href: `${process.env.NEXT_PUBLIC_AUTH_ORIGIN}/login`, title: 'Login', variant: 'primary'} satisfies LinkDef}
def={{
href: `${process.env.NEXT_PUBLIC_LOGIN_SITE_URL}?redirectUrl=${window.location.href}`,
title: 'Login',
variant: 'primary',
newTab: false
} satisfies LinkDef}
className='h-8 w-fit !min-w-0'
/>
)
Expand Down

0 comments on commit 9fd8e74

Please sign in to comment.