You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extensibility: Make it possible to add "Open in a new window", "nofollow" and other link options #4597
[Feature] ExtensibilityThe ability to extend blocks or the editing experience[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] EnhancementA suggestion for improvement.
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
Reacted by Bradley Taylor, StaggerLeee, Daniel Bachhuber, mrleemon, Venkat, Paal Joachim Romdahl, The Budget Savvy Bride and Elaine Malone
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
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.
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.
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.
Even though I wouldn’t recommend doing this, there are plugins that will
automatically add this attribute to external links. Might be easier than
adding it manually for every link? Regardless, there’s a PR somewhere that
adds the UI.
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?
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.
Reacted by firepainting and The Budget Savvy Bride
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.
[Feature] ExtensibilityThe ability to extend blocks or the editing experience[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] EnhancementA suggestion for improvement.
Activity
StaggerLeee commentedon Jan 19, 2018
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.
[-]Extensibility: Add link options[/-][+]Extensibility: Make it possible to add "Open in a new window", "nofollow" and other link options[/+]paaljoachim commentedon Jan 26, 2018
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.
ellatrix commentedon Jan 26, 2018
We could create a slot in the inspector that has formatting props from
Editableand 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_contentfilter, based on the URL, template, etc.dmccan commentedon Apr 7, 2018
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.
ellatrix commentedon Apr 7, 2018
dmccan commentedon Apr 7, 2018
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?
karmatosed commentedon Apr 10, 2018
Closing as with latest version we're adding back in open in a new window.
juicerocket commentedon Aug 20, 2018
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.
Natuurlijklinda commentedon Aug 22, 2018
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.
designsimply commentedon Jan 29, 2019
Noting that a new issue was created requesting the ability to add
nofollowfor links at #13542.StaggerLeee commentedon Jan 29, 2019
Is than "noopener" added automatically ?
designsimply commentedon Jan 29, 2019
@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.