Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions invokeai/frontend/web/src/app/components/InvokeAIUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { createStore } from 'app/store/store';
import Loading from 'common/components/Loading/Loading';
import React, { lazy, memo, useEffect, useState } from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import { HashRouter } from 'react-router-dom';

/*
* We need to configure logging before anything else happens - useLayoutEffect ensures we set this at the first
Expand Down Expand Up @@ -52,11 +52,11 @@ const InvokeAIUI = () => {
return (
<React.StrictMode>
<Provider store={store}>
<BrowserRouter>
<HashRouter>
<React.Suspense fallback={<Loading />}>
<App />
</React.Suspense>
</BrowserRouter>
</HashRouter>
</Provider>
</React.StrictMode>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const AdministratorSetup = memo(() => {
if (result.success) {
// Auto-login after setup - need to call login API
// For now, just redirect to login page
window.location.href = '/login';
window.location.href = '/#/login';
}
} catch {
// Error is handled by RTK Query and displayed via error state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const LoginPage = memo(() => {
dispatch(setCredentials({ token: result.token, user }));
// Force a page reload to ensure all user-specific state is loaded from server
// This is important for multiuser isolation to prevent state leakage
window.location.href = '/app';
window.location.href = '/#/app';
} catch {
// Error is handled by RTK Query and displayed via error state
}
Expand Down