diff --git a/src/webui/history.js b/src/webui/history.js
index f8407b0..d5db97d 100644
--- a/src/webui/history.js
+++ b/src/webui/history.js
@@ -3,7 +3,10 @@
*/
import { createBrowserHistory } from 'history';
+import { getBaseNamePath } from './utils/url';
-const history = createBrowserHistory();
+const history = createBrowserHistory({
+ basename: getBaseNamePath(),
+});
export default history;
diff --git a/src/webui/template/index.html b/src/webui/template/index.html
index f924a8c..6dd5c35 100644
--- a/src/webui/template/index.html
+++ b/src/webui/template/index.html
@@ -9,6 +9,8 @@