From 184242dba0a12636b3f678907798b4ed593fc33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Tue, 11 May 2021 12:37:26 +0200 Subject: [PATCH] DashboardPage: Makes slug parameter optional (#33902) --- public/app/routes/routes.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/public/app/routes/routes.tsx b/public/app/routes/routes.tsx index fbb7ae9bdb4..d30d5c5b76b 100644 --- a/public/app/routes/routes.tsx +++ b/public/app/routes/routes.tsx @@ -24,15 +24,7 @@ export function getAppRoutes(): RouteDescriptor[] { ), }, { - path: '/d/:uid/:slug', - pageClass: 'page-dashboard', - routeName: DashboardRoutes.Normal, - component: SafeDynamicImport( - () => import(/* webpackChunkName: "DashboardPage" */ '../features/dashboard/containers/DashboardPage') - ), - }, - { - path: '/d/:uid', + path: '/d/:uid/:slug?', pageClass: 'page-dashboard', routeName: DashboardRoutes.Normal, component: SafeDynamicImport(