From 16116e0f9197efc4a46be6177e4616f84fecdc2b Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Fri, 7 Oct 2022 00:26:48 +0200 Subject: [PATCH] switched from `BrowserRouter` to `HashRouter` --- src/WindowManager.js | 4 ++-- src/ui/src/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WindowManager.js b/src/WindowManager.js index e4d95c7..dbfefd0 100644 --- a/src/WindowManager.js +++ b/src/WindowManager.js @@ -51,11 +51,11 @@ class WindowManager { if (isDevelopment()) { this.mainWindow.loadURL("http://localhost:3000"); - this.windows.settings.loadURL("http://localhost:3000/settings"); + this.windows.settings.loadURL("http://localhost:3000/#/settings"); } else { this.mainWindow.loadURL(`file://${__dirname}/ui/build/index.html`); - this.windows.settings.loadURL(`file://${__dirname}/ui/build/index.html/settings`); + this.windows.settings.loadURL(`file://${__dirname}/ui/build/index.html#/settings`); } } diff --git a/src/ui/src/index.js b/src/ui/src/index.js index 3bf93c9..58ea031 100644 --- a/src/ui/src/index.js +++ b/src/ui/src/index.js @@ -1,7 +1,7 @@ import React from "react"; import ReactDOM from "react-dom/client"; -import {BrowserRouter as Router, Routes, Route} from "react-router-dom"; +import {HashRouter as Router, Routes, Route} from "react-router-dom"; import Ation from "./components/Ation"; import Settings from "./components/settings/Settings";