Commit ce3e34e9 by Joan López de la Franca Beltran Committed by GitHub

Plugins: Use the includes.path (if exists) on sidebar includes links (#30291)

parent 60828316
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment