diff --git a/src/components/commandList.svelte b/src/components/commandList.svelte index 517a3b8..1246790 100644 --- a/src/components/commandList.svelte +++ b/src/components/commandList.svelte @@ -1,4 +1,5 @@ diff --git a/src/routes/logout/+page.svelte b/src/routes/logout/+page.svelte index abdc2c5..c930499 100644 --- a/src/routes/logout/+page.svelte +++ b/src/routes/logout/+page.svelte @@ -3,6 +3,7 @@ import { onMount } from 'svelte'; import { get } from 'svelte/store'; import { goto } from '$app/navigation' + import { base } from '$app/paths'; let auth = get(authStore); @@ -10,11 +11,11 @@ authStore.update((p) => ({ ...p, accessToken: '' })) applicationInfo.set({ username: '', discriminator: '', id: '' }); // redirect to login - goto('/login'); + goto(`${base}/login`); } onMount(() => { - if(auth.accessToken === '') goto('/login') + if(auth.accessToken === '') goto(`${base}/login`) });