Skip to content

Commit 2641fc5

Browse files
Fix URL duplication issue (opensearch-project#2004) (opensearch-project#2010)
Signed-off-by: Derek Ho <dxho@amazon.com> (cherry picked from commit cac7e08) Co-authored-by: Derek Ho <dxho@amazon.com>
1 parent 6df85b1 commit 2641fc5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

public/apps/configuration/app-router.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function AppRouter(props: AppDependencies) {
159159

160160
return (
161161
<DataSourceContext.Provider value={{ dataSource, setDataSource }}>
162-
<Router basename={props.params.appBasePath}>
162+
<Router>
163163
<EuiPage>
164164
{allNavPanelUrls(multitenancyEnabled).map((route) => (
165165
// Create different routes to update the 'selected' nav item .

public/apps/configuration/test/__snapshots__/app-router.test.tsx.snap

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ exports[`SecurityPluginTopNavMenu renders DataSourceMenu when dataSource is enab
1212
}
1313
}
1414
>
15-
<HashRouter
16-
basename=""
17-
>
15+
<HashRouter>
1816
<EuiPage>
1917
<Route
2018
exact={true}

0 commit comments

Comments
 (0)