From e85f22a6f97882095cbd162f548213126fc43c89 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 5 Apr 2024 06:21:19 +0200 Subject: [PATCH] tmp --- webclient/pages/[view]/[id].vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webclient/pages/[view]/[id].vue b/webclient/pages/[view]/[id].vue index 348fbfafe..40e473d3c 100644 --- a/webclient/pages/[view]/[id].vue +++ b/webclient/pages/[view]/[id].vue @@ -34,11 +34,12 @@ watchEffect(() => { router.replace({ path: "/" }); } }); -watch(error, () => { +watchEffect(() => { if (error.value) { - throw createError({ - statusCode: 404, - statusMessage: error.value, + router.push({ + path: "/404", + query: {...route.query, path:route.path}, + hash: route.hash, }); } });