diff --git a/moneymgr_web/src/App.tsx b/moneymgr_web/src/App.tsx index 50411fc..5fc3d18 100644 --- a/moneymgr_web/src/App.tsx +++ b/moneymgr_web/src/App.tsx @@ -49,8 +49,7 @@ export function App() { } /> ) - ), - { basename: import.meta.env.VITE_APP_BASENAME } + ) ); return ( diff --git a/moneymgr_web/src/api/ApiClient.ts b/moneymgr_web/src/api/ApiClient.ts index 213ddbc..177ac86 100644 --- a/moneymgr_web/src/api/ApiClient.ts +++ b/moneymgr_web/src/api/ApiClient.ts @@ -163,7 +163,7 @@ export class APIClient { // Handle expired tokens if (status === 412) { AuthApi.UnsetAuthenticated(); - window.location.href = import.meta.env.VITE_APP_BASENAME; + window.location.href = "/"; } if (!args.allowFail && (status < 200 || status > 299))