Menu link URL should be translatable

Created on 18 October 2015, over 9 years ago
Updated 11 April 2024, 12 months ago

Problem/Motivation

Menu link URLs are not translatable. This is a problem regarding external URLs. Currently the only solution seems to be making a duplicate menu for the other language.

Proposed resolution

Make menu link URL translatable.

Feature request
Status

Needs work

Version

11.0 🔥

Component
Menu link content 

Last updated about 1 hour ago

Created by

🇹🇭Thailand juhog

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • last update about 1 year ago
    Patch Failed to Apply
  • First commit to issue fork.
  • Pipeline finished with Failed
    12 months ago
    Total: 178s
    #143564
  • Status changed to Needs review 12 months ago
  • 🇪🇸Spain akalam

    I've created a MR rerolling the patch from #33 to the latest Drupal 11.x release. I'm attaching also a static patch to apply safely from composer

  • Pipeline finished with Failed
    12 months ago
    Total: 689s
    #143573
  • Status changed to Needs work 12 months ago
  • 🇺🇸United States smustgrave

    Believe this feature will need test coverage.

    Have not reviewed

  • 🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

    Issue:
    When link field is made untranslatable for a particular menu type from /admin/config/regional/content-language, I get the following error:

    Error: Call to undefined method Drupal\Core\Field\Entity\BaseFieldOverride::setItemDefinition() in Drupal\menu_link_content\Entity\MenuLinkContent->setTranslationConstraints() (line 444 of /var/www/html/docroot/core/modules/menu_link_content/src/Entity/MenuLinkContent.php).

    While debugging, i found that when link field is translatable, the $item_definition object is instance of class Drupal\Core\Field\BaseFieldDefinition and when non-translatable, the object is instance of class Drupal\Core\Field\Entity\BaseFieldOverride where `setItemDefinition` method is not defined.

  • 🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

    Fix for issue described in #40

  • Pipeline finished with Failed
    3 months ago
    Total: 205s
    #396498
Production build 0.71.5 2024