Skip to content

Commit 9e1ba91

Browse files
committed
fix: use relative path for menu link
1 parent 12af5d9 commit 9e1ba91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

admin/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ export default {
2525
register(app: StrapiApp) {
2626
console.log(`[${pluginId}] Registering plugin...`);
2727

28+
// Menu link - path should be relative to root (no leading slash)
2829
app.addMenuLink({
29-
to: `/plugins/${pluginId}`,
30+
to: `plugins/${pluginId}`,
3031
icon: PluginIcon as any,
3132
intlLabel: {
3233
id: `${pluginId}.Admin.MainMenu.PluginName`,

0 commit comments

Comments
 (0)