Skip to content

Open "External Link" in New Window - Plugins with Links #290

@wesleyboar

Description

@wesleyboar

Goal

Any link within a TACC plugin to an external website should automatically open in an external window/tab.

Requirements

  1. Any TACC plugin link to external website should open in a new window when clicked*.
  2. This feature should not require configuration by CMS user.

* When clicked without modification key from user. (Cmd+ click on Mac browsers opens link in new window.)

Direction

Done via #280 (see external_link).

Archived Idea

Use a Django filter "templatetag":

  1. (Python) Parse any known URL before rendering a link.
  2. (Python) Conditionally render target="_blank" attribute in link.
  3. (Template) Apply the filter to CMS menu markup.
  4. (Template) Apply the filter to article listing template/s (or a shared partial)

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort XSExtra small effort task (~¼ a week) — does not include review timeenhancementImprovements or additions to existing featurespriority ▲High priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions