-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
issue: bugIssue reporting a bugIssue reporting a bug
Description
What version of @strapi/sdk-plugin are you using?
- Npm version
10.8.2 - Node.js version
20.17.0 - React version:
18.3.1 @strapi/sdk-pluginversion
5.3.0
What's Wrong?
When initializing a plugin with the command
npx @strapi/sdk-plugin init plugin-name,
the link on the icon in the admin menu is incorrect.
To Reproduce
npx @strapi/sdk-plugin init plugin-name
In the admin panel, click on the icon of the created plugin.
Expected Behaviour
In [plugin-name]/admin/src/index.js, modify the link (to:) so that it references the icon (${PluginIcon}) instead of the plugin ID (${PLUGIN_ID}).
app.addMenuLink({
to: `plugins/${PluginIcon}`,
icon: PluginIcon,
intlLabel: {
id: `${PLUGIN_ID}.plugin.name`,
defaultMessage: PLUGIN_ID,
},
...
app.addMenuLink({
to: `plugins/${PLUGIN_ID}`,
icon: PluginIcon,
intlLabel: {
id: `${PLUGIN_ID}.plugin.name`,
defaultMessage: PLUGIN_ID,
},
...
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bug