mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +00:00
Attempt to fix routing via client side hooks
This commit is contained in:
6
src/hooks.client.js
Normal file
6
src/hooks.client.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export const handleError = ({ error, event }) => {
|
||||
if (event.url.pathname.startsWith("/repo")) {
|
||||
window.location.href = event.url.pathname;
|
||||
return;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user