Skip to content

Commit

Permalink
Remove returnTo from ResiterWithGoogle href
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Jan 24, 2025
1 parent b40ab44 commit 0b647fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/routes/(unauthenticated)/register/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import { goto } from '$app/navigation';
import { register } from '$lib/user';
import RegisterWithGoogleButton from '$lib/components/RegisterWithGoogleButton.svelte';
import { page } from '$app/stores';
async function onSubmit(): Promise<void> {
await goto('/home', { invalidateAll: true }); // invalidate so we get the user from the server
Expand All @@ -14,7 +13,7 @@

<TitlePage title={$t('register.title')}>
<div class="flex flex-col pb-2">
<RegisterWithGoogleButton href={`/api/login/google?redirectTo=${$page.url.pathname}`}/>
<RegisterWithGoogleButton href={`/api/login/google`}/>
</div>
<div class="divider lowercase">{$t('common.or')}</div>
<CreateUser handleSubmit={register} on:submitted={onSubmit} />
Expand Down

0 comments on commit 0b647fc

Please sign in to comment.