Dashboard: Allows the d-solo route to be used without slug (#19640)

Allows the d-solo route to be used with UID and without 
a slug.

Fixes #11617
This commit is contained in:
Amarnath Karthi
2019-10-14 21:51:44 +05:30
committed by Marcus Efraimsson
parent 08f01a6c4f
commit 74557a4c40
2 changed files with 13 additions and 0 deletions

View File

@@ -82,6 +82,18 @@ export function setupAngularRoutes($routeProvider: route.IRouteProvider, $locati
),
},
})
.when('/d-solo/:uid', {
template: '<react-container />',
pageClass: 'dashboard-solo',
routeInfo: DashboardRouteInfo.Normal,
reloadOnSearch: false,
resolve: {
component: () =>
SafeDynamicImport(
import(/* webpackChunkName: "SoloPanelPage" */ '../features/dashboard/containers/SoloPanelPage')
),
},
})
.when('/dashboard-solo/:type/:slug', {
template: '<react-container />',
pageClass: 'dashboard-solo',