diff --git a/etc/apache2/sites-available/unity-ui.conf b/etc/apache2/sites-available/unity-ui.conf
index 74a9458..ef9f324 100644
--- a/etc/apache2/sites-available/unity-ui.conf
+++ b/etc/apache2/sites-available/unity-ui.conf
@@ -13,10 +13,14 @@
Header add Set-Cookie oidc_claim_email=%{OIDC_CLAIM_EMAIL}e;Domain=${ENV_UNITY_UI_WWW_DOMAIN};Path=/;SameSite=strict;
+
Options -Indexes
AllowOverride All
Order allow,deny
- allow from all
+ Allow from all
+
+ FallbackResource /index.html
+
diff --git a/src/Root.tsx b/src/Root.tsx
index d23561f..3a1df5d 100644
--- a/src/Root.tsx
+++ b/src/Root.tsx
@@ -1,4 +1,5 @@
import {
+ Navigate,
Route,
Routes,
} from "react-router-dom"
@@ -28,7 +29,6 @@ function Root() {
useEffect(() => {
-
if (healthState.status === "idle") {
// Fetch the health data
dispatch(getHealthData());
@@ -72,9 +72,9 @@ function Root() {
return } />
})
}
- {/*} />*/}
+ } />
} />
- } />
+ } />
} />
diff --git a/src/main.tsx b/src/main.tsx
index ff43d5b..92c978e 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -1,19 +1,20 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
-import { HashRouter, Routes, Route } from 'react-router-dom'
+import { BrowserRouter, Routes, Route } from 'react-router-dom'
import { HelmetProvider } from 'react-helmet-async'
import AuthorizationWrapper from './AuthorizationWrapper'
+import Config from "./Config"
import './index.css'
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
-
+
-
+
)