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

Internationalization issue #390

Closed oliynykroman closed 10 months ago

oliynykroman commented 11 months ago

Hi, I have two languages on the site (EN, DK). When I added new language in internationalization (so i have EN - default, DK and NO) DK version in navigation plugin just deleted and replaced with NO (this happen after admin reload, before admin reload i see EN, DK versions). When i trying to add new navigation i see only EN version. image

After some time site stop working with error:
image

_error: insert into navigations (created_at, locale_code, name, slug, updated_at, visible) values ('2023-10-20 05:41:29.971', 'da-DK', 'Header', 'header-da-DK', '2023-10-20 05:41:29.971', true) - ER_DUP_ENTRY: Duplicate entry 'header-da-DK' for key 'navigations_slug_unique'._

Only remove localization manually in DB resolve problem.

Configuration:

    "@strapi/plugin-i18n": "4.14.5",
    "@strapi/plugin-seo": "^1.9.5",
    "@strapi/plugin-users-permissions": "4.14.5",
    "@strapi/strapi": "4.14.5",
    "mysql": "2.18.1",
    "strapi-plugin-navigation": "^2.2.16",
    "strapi-plugin-populate-deep": "^3.0.0"
damian-balas commented 10 months ago

I have the same issue. Adding a language is causing issues. Same goes for deleting them.

CodeVoyager commented 10 months ago

Hi @oliynykroman and @damian-balas,

Thank you for your posting. We will investigate and keep you posted.

CodeVoyager commented 10 months ago

Hi @oliynykroman and @damian-balas,

PR with fix for this issue is in review. I reckon new version of the plugin will be available in about 2 weeks.

cyp3rius commented 10 months ago

Fixed in v2.3.1