mattmilburn / strapi-plugin-menus

A plugin for Strapi CMS to customize the structure of menus and menu items.
MIT License
110 stars 27 forks source link

Issue with relation field linking #160

Open nathanwkwong opened 3 months ago

nathanwkwong commented 3 months ago

I have a menu item with a field, A, related to a collection, B. After I link a collection of B, b. The link to go to b is http://localhost:1337/admin/content-manager/collectionType/api::B.B/12 but it should be http://localhost:1337/admin/content-manager/collection-types/api::B.B/12 Screenshot 2024-05-13 at 5 14 21 PM

After clicking the link, it redirect to the collection list, http://localhost:1337/admin/content-manager/collection-types/api::B:B instead of that particular collection b page. is there a way to fix it? I tried to add a global middleware to rewrite the redirection, but it does not work. the link is in referer and the first fetch after clicking a relation is to content-manager/init instead of the wanted url

Screenshot 2024-05-13 at 5 13 04 PM

my strapi packages version: "@strapi/strapi": "4.23.1", "strapi-plugin-menus": "^1.6.1"

This plugin is awesome, helped me to flatten the data structure~!
Thanks for any help.