From bb25d71a171a2ddcb8b81159f08393f86dae09df Mon Sep 17 00:00:00 2001 From: Devon A Thomson Date: Tue, 5 Jan 2021 11:51:42 -0500 Subject: [PATCH] Added back default route with exact path matching --- .../dashboard/public/application/dashboard_router.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/dashboard/public/application/dashboard_router.tsx b/src/plugins/dashboard/public/application/dashboard_router.tsx index 0bd3554d97f14..baa7ffc5b8de3 100644 --- a/src/plugins/dashboard/public/application/dashboard_router.tsx +++ b/src/plugins/dashboard/public/application/dashboard_router.tsx @@ -22,7 +22,7 @@ import React from 'react'; import { I18nProvider } from '@kbn/i18n/react'; import { parse, ParsedQuery } from 'query-string'; import { render, unmountComponentAtNode } from 'react-dom'; -import { Switch, Route, RouteComponentProps, HashRouter } from 'react-router-dom'; +import { Switch, Route, RouteComponentProps, HashRouter, Redirect } from 'react-router-dom'; import { DashboardListing } from './listing'; import { DashboardApp } from './dashboard_app'; @@ -209,6 +209,9 @@ export async function mountApp({ render={renderDashboard} /> + + +