Add Optional "Target" for Link, with that editors will be able to configure links to open in a new window/tab

Created on 6 July 2024, 4 months ago
Updated 2 September 2024, 2 months ago

Problem/Motivation

Link works good however has a lack to specify the target attribute for link fields (e.g., _blank, _self). This feature is essential for controlling how linked content opens, such as in a new tab or window. Without this capability, users often resort to custom coding or additional modules, which complicates site management and can lead to inconsistent behavior across different implementations.

Steps to reproduce

  1. Create or edit a content type that includes a reference for Paragraph and use the field for adding links.
  2. Attempt to configure a link to open in a new window/tab
  3. Note the absence of an option to set the target attribute directly through standard field settings

Proposed resolution

Introduce an optional "Target" field for link. This field should provide a dropdown list with the following options:

  • _blank: Opens the linked document in a new window or tab.
  • _self: Opens the linked document in the same frame or window as it was clicked (default behavior).
  • _parent: Opens the linked document in the parent frame or window.
  • _top: Opens the linked document in the full body of the window.

This enhancement will empower content editors and site administrators to easily manage link behavior without requiring custom development or third-party modules.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024