Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Translatable menu link uri

Security covered Maintenance fixes only 11,682 sites

This module allows content editors to specify a different URL for menu items based on the language. This is useful when linking to external content, like a PDF, that cannot be translated within Drupal itself. By providing an alternative "Link override" in the menu item's translation settings, you can ensure the correct link is displayed for each language.

Introduction

This tiny module allows content editor to override link field from custom menu items.
The major reason behind this is a scenario, where user want to have different URL, depending on language.

Real life use case is scenario, where we are linking to external, static content (like PDF file), which cannot be translated locally.
It's really rare, but sometimes it happens :)

Installation

- Please download and enable module, as usual :)
- At admin/config/regional/content-language, please enable translation for Custom menu link entity type.
- Please enable translation for Custom menu link => Link override field.

At this moment, module is fully functional.

Usage

At menu link add/edit form you will see new optional link field, "Link override". If this remains empty, then it will do nothing.
If you enter value in this field, then it will override default link value at menu tree rendering.

Please note, that best scenario here is to add this field on translation forms. If you put this on source edit form, then links in translations are overriden by default.

Drupal 8–11

Ask your assistant about Translatable menu link uri

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • content_translation Drupal core
  • menu_link_content Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Sep 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.1.3 Stable 8–11 Jul 8, 2025
2.1.2 Stable 8–11 Jul 7, 2025
2.1.1 Stable 8–11 Jan 20, 2025
2.1.0 Stable 8–10 Sep 10, 2023