From 66fea04b9bad285131fc2b1150398b26f320cf33 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 24 Jan 2025 09:18:36 +0000 Subject: [PATCH] Attempt to fix routing via client side hooks --- src/hooks.client.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/hooks.client.js diff --git a/src/hooks.client.js b/src/hooks.client.js new file mode 100644 index 0000000..1e41561 --- /dev/null +++ b/src/hooks.client.js @@ -0,0 +1,6 @@ +export const handleError = ({ error, event }) => { + if (event.url.pathname.startsWith("/repo")) { + window.location.href = event.url.pathname; + return; + } +};