This is an automated email from the ASF dual-hosted git repository.
wanggenhua pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/master by this push:
new f8484d7ddc [Feature] Changed hash router to history router. (#867)
f8484d7ddc is described below
commit f8484d7ddca0e1a82d96a77aacb6d8195c2d5943
Author: Amy0104 <[email protected]>
AuthorDate: Mon Dec 26 10:12:33 2022 +0800
[Feature] Changed hash router to history router. (#867)
---
public/.htaccess | 2 +-
src/App.jsx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/.htaccess b/public/.htaccess
index de377bfe45..ca79e84215 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1 +1 @@
-ErrorDocument 404 /404.html
+ErrorDocument 404 /index.html
diff --git a/src/App.jsx b/src/App.jsx
index ee3e433d6c..33e7f6ecee 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,5 +1,5 @@
import {
- createHashRouter,
+ createBrowserRouter,
createRoutesFromElements,
json,
Route,
@@ -19,7 +19,7 @@ import NotFound from "./views/NotFound";
import getLocales from "./api/getLocales";
import getVersions from "./api/getVersions";
-const router = createHashRouter(
+const router = createBrowserRouter(
createRoutesFromElements(
<Route>
<Route path="/" element={<Layout />} />