From c1fa1923a242efcedef94b733716e4ac9305252f Mon Sep 17 00:00:00 2001 From: Josh Dover Date: Mon, 24 Aug 2020 11:41:38 -0600 Subject: [PATCH] [7.x] Configure ScopedHistory consistenty regardless of URL used to mount app (#75074) (#75684) Co-authored-by: Elastic Machine --- src/core/public/application/ui/app_router.tsx | 4 ++-- .../core_plugin_a/public/application.tsx | 7 ++++--- .../test_suites/core_plugins/applications.ts | 18 +++++++++++++++--- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/core/public/application/ui/app_router.tsx b/src/core/public/application/ui/app_router.tsx index f2d2d1e6587ac..f1f22237c32db 100644 --- a/src/core/public/application/ui/app_router.tsx +++ b/src/core/public/application/ui/app_router.tsx @@ -64,9 +64,9 @@ export const AppRouter: FunctionComponent = ({ key={mounter.appRoute} path={mounter.appRoute} exact={mounter.exactRoute} - render={({ match: { url } }) => ( + render={({ match: { path } }) => ( ( { id: 'home', name: 'Home', - onClick: () => history.push(''), + onClick: () => history.push('/home'), 'data-test-subj': 'fooNavHome', }, { @@ -122,7 +122,8 @@ const FooApp = ({ history, context }: { history: History; context: AppMountConte