Skip to main content

Devbit

How to translate menu link URIs in Drupal

You have a menu in your drupal and want to change the URI of a link for different languages when you translate the menu.

Issue:

You have a menu in your drupal and want to change the URI of a link for different languages when you translate the menu.

Prerequisites:

Our solution uses the Translatable menu link uri module.

Solution:

Install the module and enable the translation of custom menu links (/admin/config/regional/content-language). After that you will be able to translate not only the link label, now you can also set a different target.

Link Uri translation

The example screenshot is from a German translation page.

Michael Ebert

Michael Ebert

Backend Developer / DevOps

Ihre Drupal-Website zukunftssicher machen

Wir prüfen Ihr System und zeigen, was Sie für AI, Wartung und Upgrades brauchen.