mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
Plugins: remove 'admin/plugins' redirect (#73319)
Redirect was deleted because it is deprecated
This commit is contained in:
parent
0aba319ea0
commit
9f4fb71a7b
@ -1,6 +1,3 @@
|
|||||||
import React from 'react';
|
|
||||||
import { Redirect } from 'react-router-dom';
|
|
||||||
|
|
||||||
import { SafeDynamicImport } from 'app/core/components/DynamicImports/SafeDynamicImport';
|
import { SafeDynamicImport } from 'app/core/components/DynamicImports/SafeDynamicImport';
|
||||||
import { RouteDescriptor } from 'app/core/navigation/types';
|
import { RouteDescriptor } from 'app/core/navigation/types';
|
||||||
|
|
||||||
@ -28,11 +25,6 @@ const DEFAULT_ROUTES = [
|
|||||||
routeName: PluginAdminRoutes.Details,
|
routeName: PluginAdminRoutes.Details,
|
||||||
component: SafeDynamicImport(() => import(/* webpackChunkName: "PluginPage" */ './pages/PluginDetails')),
|
component: SafeDynamicImport(() => import(/* webpackChunkName: "PluginPage" */ './pages/PluginDetails')),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/admin/plugins/*',
|
|
||||||
navId: 'admin-plugins',
|
|
||||||
component: () => <Redirect to="/plugins" />,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export function getRoutes(): RouteDescriptor[] {
|
export function getRoutes(): RouteDescriptor[] {
|
||||||
|
Loading…
Reference in New Issue
Block a user