replace base with resolve

This commit is contained in:
maxDorninger
2025-10-27 19:20:57 +01:00
parent 7eb4ff8902
commit f62394fdb7
27 changed files with 108 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { goto } from '$app/navigation';
import { base } from '$app/paths';
import { resolve } from '$app/paths';
import { toast } from 'svelte-sonner';
import client from '$lib/api';
@@ -60,7 +60,7 @@ export function convertTorrentSeasonRangeToIntegerRange(torrent: {
export async function handleLogout() {
await client.POST('/api/v1/auth/cookie/logout');
await goto(base + '/login');
await goto(resolve('/login', {}));
}
export async function handleOauth() {