From ec3b721b403d02647ba8d3f706560a8ed6c5a4b7 Mon Sep 17 00:00:00 2001 From: rxdn <29165304+rxdn@users.noreply.github.com> Date: Wed, 22 Jun 2022 21:19:52 +0100 Subject: [PATCH] Go back 2 pages --- frontend/src/layouts/ErrorPage.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/layouts/ErrorPage.svelte b/frontend/src/layouts/ErrorPage.svelte index 80fbd98..7600a60 100644 --- a/frontend/src/layouts/ErrorPage.svelte +++ b/frontend/src/layouts/ErrorPage.svelte @@ -64,10 +64,10 @@ export let params = {}; function back() { - window.history.back() + window.history.go(-2); } function home() { - window.location.href = '/' + window.location.href = '/'; } \ No newline at end of file