mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Use the includes.path (if exists) on sidebar includes links (#30291)
This commit is contained in:
committed by
GitHub
parent
60828316c0
commit
ce3e34e9b3
@@ -212,8 +212,9 @@ class PluginPage extends PureComponent<Props, State> {
|
||||
if (item.type === PluginIncludeType.page) {
|
||||
const pluginId = this.state.plugin!.meta.id;
|
||||
const page = item.name.toLowerCase().replace(' ', '-');
|
||||
const url = item.path ?? `plugins/${pluginId}/page/${page}`;
|
||||
return (
|
||||
<a href={`plugins/${pluginId}/page/${page}`}>
|
||||
<a href={url}>
|
||||
<i className={getPluginIcon(item.type)} />
|
||||
{item.name}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user