Skip to content

Gutenberg strips the rel='nofollow' in links when copying content #73872

@alanjacobmathew

Description

@alanjacobmathew

Description

Gutenberg editor is stripping off the nofollow relation on links when the content is being copied from an already published content.

For example, assume I have a published content, where there is a link in the content. The link is set as 'nofollow' and 'open-in new-tab'.

  • Now copy the content from this published post and open a new post in GB editor.
  • Publish this new post.

Output
The nofollow link part is stripped. But open in new tab is retained.

Step-by-step reproduction instructions

  1. Take a published post where links are set as nofollow.
  2. Copy that content with link and paste it on GB editor.
  3. Publish the post, and notice the nofollow rel are removed.

Screenshots, screen recording, code snippet

Nofollow-Stripped-rtp.mp4

Environment info

WP 6.9 Default editor
T23, Kadence
Windows 10

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Feature] Paste[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions