Link field > Link display for internal links when no link text is given should not just display node/{node ID}

Created on 15 June 2020, over 5 years ago
Updated 19 February 2023, over 2 years ago

Problem/Motivation

Even if no link text is given for internal links, the link display should still be useful. At the moment it just renders /node/123 even if a node has a node title or an alias, and the editors need to copy the link text from the auto complete above ...

Proposed resolution

Add a link field to a node (related links)
Make link text optional
Add an internal like with link text
Add an internal like without link text
Add an external link without link text

Please note: the screenshot is taken form the Sector distribution. So there has been some additional configuration but the issue remains.

Proposed resolution

(Description of the proposed solution, the rationale behind it, and workarounds for people who cannot use the patch.)
In a perfect world the link would be displayed as
1 - node or entity title (if exists ... in almost all cases nodes will have titles
2 - Site domain + node alias (if exists ... even if it is a relative link, the full URL makes it easier to understand for the user)
3 - Site domain + node path (see above)

Remaining tasks

Review and decide on next steps.

✨ Feature request
Status

Needs work

Version

9.5

Component
Link  →

Last updated 10 days ago

Created by

🇳🇿New Zealand heiket

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.71.5 2024