From 3aad7f716ea4d6275eb0bd05695340ecf4a2ca22 Mon Sep 17 00:00:00 2001 From: Bhasher Date: Thu, 11 Jan 2024 16:57:13 +0100 Subject: [PATCH] Fix dev & build differences --- frontend/src/lib/components/projects/SelectProject.svelte | 4 ++-- frontend/src/routes/+layout.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/projects/SelectProject.svelte b/frontend/src/lib/components/projects/SelectProject.svelte index b7bf779..6d9f2dd 100644 --- a/frontend/src/lib/components/projects/SelectProject.svelte +++ b/frontend/src/lib/components/projects/SelectProject.svelte @@ -40,10 +40,10 @@ {:else}
(location.href = `/project.html?id=${project.id}`)} + on:click={() => (location.href = location.origin + `/project/?id=${project.id}`)} on:keydown={(e) => { if (e.key === 'Enter') { - location.href = `/project?id=${project.id}`; + location.href = location.origin + `/project/?id=${project.id}`; } }} tabindex="0" diff --git a/frontend/src/routes/+layout.js b/frontend/src/routes/+layout.js index 189f71e..1e62f0b 100644 --- a/frontend/src/routes/+layout.js +++ b/frontend/src/routes/+layout.js @@ -1 +1,3 @@ export const prerender = true; +export const ssr = false; +export const trailingSlash = 'always';