Allow entering a fragment attribute

Created on 1 April 2025, 6 days ago

Problem/Motivation

As described in https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Url.php/function/... fragments can be set on links, which also makes sense on Menu items.

Sadly Drupal doesn't offer a functionality to use the autocomplete for link targets plus a fragment in the UI. This is no problem if the link target is a URL, like /about-us#team

But as the Link URL is not translatable (all languages), that's incompatible with multilanguage environments and also bad UX.

Seems like menu items already support storing these values: 📌 Link module has untested features to store additional configuration per link Active

So maybe this should be a submodule, as it differs from the additional attributes?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.71.5 2024