From 109b64cdbdd0b1d0a9423122da22e46ad451850c Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Thu, 9 Feb 2023 10:22:24 +0100 Subject: [PATCH] Fix: webui --- webui/src/routes/+page.js | 1 + webui/src/routes/+page.svelte | 2 +- webui/src/routes/chicken/+page.js | 1 + webui/src/routes/chicken/+page.svelte | 2 +- webui/src/routes/sauna/+page.js | 1 + webui/src/routes/sauna/+page.svelte | 4 ++-- webui/svelte.config.js | 1 - 7 files changed, 7 insertions(+), 5 deletions(-) diff --git a/webui/src/routes/+page.js b/webui/src/routes/+page.js index 189f71e..ba58d86 100644 --- a/webui/src/routes/+page.js +++ b/webui/src/routes/+page.js @@ -1 +1,2 @@ export const prerender = true; +export const trailingSlash = 'always'; diff --git a/webui/src/routes/+page.svelte b/webui/src/routes/+page.svelte index aabd3a4..8120cb0 100644 --- a/webui/src/routes/+page.svelte +++ b/webui/src/routes/+page.svelte @@ -8,8 +8,8 @@
+

Home

Home
-

Home

diff --git a/webui/src/routes/chicken/+page.js b/webui/src/routes/chicken/+page.js index 189f71e..ba58d86 100644 --- a/webui/src/routes/chicken/+page.js +++ b/webui/src/routes/chicken/+page.js @@ -1 +1,2 @@ export const prerender = true; +export const trailingSlash = 'always'; diff --git a/webui/src/routes/chicken/+page.svelte b/webui/src/routes/chicken/+page.svelte index 75af13c..1a55ef1 100644 --- a/webui/src/routes/chicken/+page.svelte +++ b/webui/src/routes/chicken/+page.svelte @@ -113,10 +113,10 @@
+

Chicken

Chicken
-

Chicken


diff --git a/webui/src/routes/sauna/+page.js b/webui/src/routes/sauna/+page.js index 189f71e..ba58d86 100644 --- a/webui/src/routes/sauna/+page.js +++ b/webui/src/routes/sauna/+page.js @@ -1 +1,2 @@ export const prerender = true; +export const trailingSlash = 'always'; diff --git a/webui/src/routes/sauna/+page.svelte b/webui/src/routes/sauna/+page.svelte index cad8301..ccf9119 100644 --- a/webui/src/routes/sauna/+page.svelte +++ b/webui/src/routes/sauna/+page.svelte @@ -34,9 +34,9 @@
-

{temperature_value} {temperature_unit}

+

Sauna

Sauna
-

Sauna

+

{temperature_value} {temperature_unit}

diff --git a/webui/svelte.config.js b/webui/svelte.config.js index 25396fb..0c32113 100644 --- a/webui/svelte.config.js +++ b/webui/svelte.config.js @@ -17,4 +17,3 @@ const config = { }; export default config; -export const trailingSlash = 'always'; \ No newline at end of file