From 0bfb4b4c3c6898ec4f9c48eb8149826e3d7a2b81 Mon Sep 17 00:00:00 2001 From: Josh Dover Date: Mon, 17 Aug 2020 11:18:39 -0600 Subject: [PATCH] Configure ScopedHistory consistenty regardless of URL used to mount app --- 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