Skip to content
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

Link Issue #54410

Closed
vitalytennant opened this issue Sep 13, 2023 · 3 comments
Closed

Link Issue #54410

vitalytennant opened this issue Sep 13, 2023 · 3 comments
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@vitalytennant
Copy link

Description

Hello,
Summation: Code and/or plugin needed to remove rel="noreferrer noopener" from links.

Detailed Issue:

Opening links in new tab/window refrains interruption of the content being read, viewed, and/or listened to.
And it is recommended to open new tabs/windows more often than not, e.g. losing reading position, interrupting AI readers, etc. Yes, it is safe to open new tab/window via _blank, additionally, it isn’t black hat, and does not carry pessimistic tendencies, as well as reference for page rank, not talking about uninterrupted SEO of direct traffic. Aforementioned is important because only 4.1 billion people use the internet, about 56.7 of global population, therefore knowing a reference is important.

How can this be remedied, by removing rel="noreferrer noopener"?

rel="noreferrer noopener" is added automatically, it is re-added (after being removed) upon saving/publishing.
Is there a code and/or plugin that works and does this?

There are references of code for functions.php and plugins that haven’t been updated in years. Code does not work, and we’re reluctant to use the outdated plugins.

Not window.opener.location issue. Any security plugin prevents this, such as CleanTalk.org, etc.

Looking forward to having this resolved.

Thank you in advance.

Best regards.

Step-by-step reproduction instructions

  1. All links with _blank experience this issue.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.3./1, etc. all latest versions, until issue is addressed.

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

@skorasaurus skorasaurus added [Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels Sep 13, 2023
@skorasaurus
Copy link
Member

Hi,

Thanks for reporting;
This has been discussed and/or requested in #26914. Feel free to add your reaction and follow its progress in the issue.

That issue also has a comment which has a temporary workaround #26914 (comment) which temporarily fixes the problem if you wish.

@vitalytennant
Copy link
Author

Hello,

Thank you for your response.

Code doesn't work.

//Removes noreferrer from new or updated posts
function my_targeted_link_rel($rel_values) {
return 'noopener';
}
add_filter('wp_targeted_link_rel', 'my_targeted_link_rel',999);

Aforementioned github reference does not address rel=”noopener”

There needs to be a permanent solution, because anyone can add rel=”noreferrer noopener” if they'd like, not the other way around.

@vitalytennant
Copy link
Author

This can be further elaborated via https://core.trac.wordpress.org/ticket/59333#ticket

"This impacts the entire wordpress opensource, and should be addressed respectively, and enhanced with either WP plugin, and/or the next WP update."

Everyone (without going into intricacies of everything) has links on their wordpress websites, this impacts everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants