krramos's picture
Maintain Conversation Tree State on Refresh or Share (#1397)
e58f3c4 unverified
raw
history blame
247 Bytes
import { redirect, type LoadEvent } from "@sveltejs/kit";
export const load = async ({ params, url }: LoadEvent) => {
const leafId = url.searchParams.get("leafId");
throw redirect(302, "../conversation/" + params.id + `?leafId=${leafId}`);
};