diff --git a/ui/src/pages/404/index.jsx b/ui/src/pages/404/index.tsx similarity index 74% rename from ui/src/pages/404/index.jsx rename to ui/src/pages/404/index.tsx index 5c174055..e6d800ab 100644 --- a/ui/src/pages/404/index.jsx +++ b/ui/src/pages/404/index.tsx @@ -1,4 +1,3 @@ -// eslint-disable-next-line import/no-unresolved import { HttpErrorContent } from '@/components'; const Index = () => { diff --git a/ui/src/pages/50X/index.jsx b/ui/src/pages/50X/index.tsx similarity index 74% rename from ui/src/pages/50X/index.jsx rename to ui/src/pages/50X/index.tsx index ca036d9b..0dcc49f9 100644 --- a/ui/src/pages/50X/index.jsx +++ b/ui/src/pages/50X/index.tsx @@ -1,4 +1,3 @@ -// eslint-disable-next-line import/no-unresolved import { HttpErrorContent } from '@/components'; const Index = () => { diff --git a/ui/src/utils/guard.ts b/ui/src/utils/guard.ts index 9ca830b1..0b231b1d 100644 --- a/ui/src/utils/guard.ts +++ b/ui/src/utils/guard.ts @@ -182,7 +182,7 @@ export const admin = () => { const us = deriveLoginState(); if (gr.ok && !us.isAdmin) { gr.ok = false; - gr.redirect = RouteAlias.home; + gr.redirect = ''; } return gr; };