Skip to content

Extensibility: Make it possible to add "Open in a new window", "nofollow" and other link options #4597

Closed

Description

@Soean

Issue Overview

The "Open in new window" link option was removed in #4583. For plugin authors it should be possible to add this function with a plugin.
This also can be useful for a "nofollow" option, see #4499

Activity

  1. added
    [Type] Enhancement
    [Feature] Extensibility
    on Jan 19, 2018
  2. StaggerLeee commented on Jan 19, 2018

    @StaggerLeee

    It should stay (open in new tab), at least as simple functions filter.
    There are cases when needed. "Friends, Links, Portfolio" pages/templates.

    Stupid to link to some donor/friend/sponsor and be navigated away from your website, just because of this courtesy link.

  3. changed the title [-]Extensibility: Add link options[/-] [+]Extensibility: Make it possible to add "Open in a new window", "nofollow" and other link options[/+] on Jan 23, 2018
  4. paaljoachim commented on Jan 26, 2018

    @paaljoachim
    Contributor

    Hmm Open in a new window should stay as a option in the UI without having to add some extra code for it.
    If it clutters the link interface then perhaps have the block setting change to reflect the selection of a link box. As additional options could then be shown in the Link setting.

  5. ellatrix commented on Jan 26, 2018

    @ellatrix
    Member

    We could create a slot in the inspector that has formatting props from Editable and can then be filled by a plugin. So when you select a link for example, you'd see extra options in the block inspector.

    In some cases it may be more interesting to filter the links with a the_content filter, based on the URL, template, etc.

  6. added
    [Priority] Low
    on Jan 26, 2018
  7. dmccan commented on Apr 7, 2018

    @dmccan

    Please consider adding the "Open in a new tab" option to the Gutenberg link interface. It is widely used. It is just a checkbox. It is common to use it on all external links.

  8. ellatrix commented on Apr 7, 2018

    @ellatrix
    Member
  9. dmccan commented on Apr 7, 2018

    @dmccan

    It's an option of the current (classic) editor ... so it is not new behavior and apparently a normal enough option. It would be more convenient to have the checkbox near the URL entry box. I'm glad there is a PR. I'm not in a position to merge the pull request. Can you please do so?

  10. karmatosed commented on Apr 10, 2018

    @karmatosed
    Member

    Closing as with latest version we're adding back in open in a new window.

  11. juicerocket commented on Aug 20, 2018

    @juicerocket

    Please add the nofollow option in the same format as the new window option. It's also important because Google and the FTC both require "nofollow" for any paid-for link (like blogs use, for influencer marketing). It's way too difficult to add that now, with Gutenberg. It should be a toggle option like the new window option.

  12. Natuurlijklinda commented on Aug 22, 2018

    @Natuurlijklinda

    The nofollow option is indeed very important! I hope it will be an option soon, since the Ultimate Nofollow plugin is not working with the new layout... The rest of the new layout works very nice (uptill now), so I actually want to use. But I need the nofollow option. :) As said above, it would be nice if it's the same as the "open in new window" toggle or something like that.

  13. designsimply commented on Jan 29, 2019

    @designsimply
    Member

    Noting that a new issue was created requesting the ability to add nofollow for links at #13542.

  14. StaggerLeee commented on Jan 29, 2019

    @StaggerLeee

    Is than "noopener" added automatically ?

  15. designsimply commented on Jan 29, 2019

    @designsimply
    Member

    @StaggerLeee I found an explanation about "noopener" at https://support.performancefoundry.com/article/186-noopener-noreferrer-on-my-links and, yes, the explanation mentions it was added in the Core project as of WP 4.7.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Extensibility[Priority] Low[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions