From 48c17084dfe1f9ba8f029f55c4c95c0efe2a24d7 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Sun, 14 Jan 2024 15:50:29 +0100 Subject: [PATCH] :bug: fixing goto() bug Co-authored-by: haraldnilsen Signed-off-by: Sindre Kjelsrud --- frontend/src/routes/reportbug/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/reportbug/+page.svelte b/frontend/src/routes/reportbug/+page.svelte index f88cf7f..1d9e40a 100644 --- a/frontend/src/routes/reportbug/+page.svelte +++ b/frontend/src/routes/reportbug/+page.svelte @@ -7,7 +7,7 @@ const handleBugSubmit = async () => { if (bugText) { await postBugData(bugText) - goto("javascript:history.back()") + goto(window.location = "javascript:history.back()") } else { console.log("error"); }