Skip to content

Link target attribute in Views dropbutton doesn't work #6889

@olafgrabienski

Description

@olafgrabienski

Description of the bug

When you add a Custom text field to a view, output it as a link, and add a target attribute to the link, the target attribute doesn't work in a dropbutton.

Steps To Reproduce

To reproduce the behavior:

  1. Create or edit a view of fields.
  2. Add a Custom text field, and put some text into the field. Scroll down to "Rewrite results", enable "Output this field as a link", add your URL to the "Link path", and add an attribute to "Target", e.g. _blank (see screenshot below).
  3. Add a Dropbutton field, and include the link field from above.

Actual behavior

While the default link output of the Custom text field contains the target attribute, the link in the Dropbutton field doesn't contain a target attribute.

Expected behavior

The link in the dropbutton contains the target attribute.

Screenshot to illustrate step 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions