import { base } from '$app/paths'; import { redirect } from '@sveltejs/kit'; export const GET = (event) => redirect( 307, `${base}/login/undo${ event.url.searchParams.get('next') ? `?next=${encodeURIComponent( event.url.searchParams.get('next') ?? '/' )}` : '' }` );