prefill homepage with token
This commit is contained in:
@@ -20,5 +20,5 @@ export const load: PageServerLoad = async ({ params, url, locals }) => {
|
||||
const isVorgangValid = vorgangExists(caseId);
|
||||
const isTokenValid = tokenValid(caseId, caseToken);
|
||||
|
||||
if (!isVorgangValid || !isTokenValid) throw redirect(303, `/anmeldung`);
|
||||
if (!isVorgangValid || !isTokenValid) throw redirect(303, `/anmeldung?vorgang=${caseId}`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user