Skip to content

Commit c9b8c22

Browse files
author
lunarych
committed
feature: 修改默认路由前缀basename
1 parent f8d9031 commit c9b8c22

File tree

1 file changed

+1
-1
lines changed
  • web/apps/labelstudio/src/app

1 file changed

+1
-1
lines changed

web/apps/labelstudio/src/app/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const queryClient = new QueryClient({
3838
});
3939

4040
const browserHistory = createBrowserHistory({
41-
basename: "",
41+
basename: baseURL.pathname || "/",
4242
// callback is an async way to confirm or decline going to another page in the context of routing. It accepts `true` or `false`
4343
getUserConfirmation: (message, callback) => {
4444
// `history.block` doesn't block events, so in the case of listeners,

0 commit comments

Comments
 (0)