VirtusLab-Open-Source / strapi-plugin-navigation

A plugin for Strapi Headless CMS that provides navigation / menu builder feature with their possibility to control the audience and different output structure renderers like (flat, tree and RFR - ready for handling by Redux First Router)
MIT License
308 stars 57 forks source link

Unable to create another Menu in different locale #414

Closed thewickest closed 5 months ago

thewickest commented 6 months ago

I have two situations here.

My Strapi setup has 3 locales (en, fr and ar) the first time that I enter the UI Navigation menu, the third locale does not show up, only en and fr. When I click the button to create another Menu (Manage) it let me creates the Menu but it doesn't show up after this. (the first problem that I have is solved now. The selector does show 3 locales now) imagen

When I look into the DB, I see that the Menu has been created without locale, that's why It doesn't show after the creation in the admin panel. If I modify the DB manually and add the missing locales, it does show up. imagen

Strapi-plugin-navigation: 2.4.0
Strapi: v4.20.1
Node: 18.18.2
NPM: 9.8.1
CodeVoyager commented 6 months ago

Hi @thewickest

We're sorry for your inconvenience.

As a check steps I've to checks.

First on was to delete all navigations. (Simulating first run after plugin enabling). I was unable to detect any issues. Main navigation was created in all available locale version (4 in my case).

Second one was to just add a new navigation. With that I was able to reproduce the issue. I found out the reason and created PR to address it.

So for the first part of your query I'm not able to reproduce this issue one to one. Would re-iterate steps to reproduce it, please?

RemiKalbe commented 6 months ago

I'm having the same issue, 3 locales, one of them doesn't show up (and sometime the one that shows up changes). This plugin is very unstable as I've add other similar issues in multiple project.

aftarfadilah commented 5 months ago

I also have this issue. I'm using 2 locales. When I create a new Navigation, it doesn't show up because the locale_code is null. I have to edit it manually within the database. Then there's also a problem, the locale for that navigation is not created for all locale. It'll only be created if I create another navigation, but then after all menu for all locales generated, the navigations_localizations_links is not correctly linked causing my navigation to have 4 locale if I have 2 navigation that's not generated for all locale (ie. "de, de, en, en").

cyp3rius commented 5 months ago

Released as part of v2.5.0.

Note that was last major release containing features for Strapi v4.