-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds 'nofollow' setting to inline links (rich text only) #53945
Conversation
Size Change: +175 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
I'm not sure we need the help text. If you check the control, it's implied you know what it is — otherwise you ignore it. |
Could it be a label on hover, or in a tooltip on an (i)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good step forward. I think we can improve the messaging but that could happen in a followup.
Search engines are not compelled to obey this rule
6eb6af4
to
ed90bf7
Compare
I rebased this PR after applying comments from review. Hopefully now the anomalous e2e test failures will stop happening and we can merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
If and when this merges we should follow up to add this control elsewhere:
|
Flaky tests detected in ab5a41c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6035878146
|
@geriux Are you available to help add this same feature to mobile/natuve? It shouldn't cause any problems because I conditionally enabled it for web links only. |
What?
Adds the ability to toggle
nofollow
for a given link via the Link UI in rich text only (at this initial stage).Addresses part of #23011
Kudos to #48722 for the inspiration.
Why?
This is a standard practice for those utilising more advanced SEO techniques. It is recommended by major search providers as a way of qualifying outbound links.
This paves the way for the possibility of adding other settings such as
sponsored
which is also recommend by major search providers.How?
Utilises the new foundations that contributors have been putting in place for a while now including (but not limited to):
Advanced
settings area.The
nofollow
setting can now be easily added without overloading the interface with too many options that may not not helpful to portion of WordPress users (i.e. non-technical or not focused on SEO). For those users who make regular use of this feature this can still be easily accessed because the toggle state of theAdvanced
area is persisted once toggled meaning it does not have to be repeatedly re-opened.Note that to avoid
...the new setting is not provided by default to all instances of
LinkControl
. Rather we are now exposing the default settings fromLinkControl
to allow them to be extended.This means that in the rich text implemented, we can safely extent the default settings with a new setting for
nofollow
.Testing Instructions
Save
again.Testing Instructions for Keyboard
Screenshots or screencast