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

Noindex URLs with unapproved comment parameter #21939

Open
2 tasks done
jdevalk opened this issue Jan 1, 2025 · 2 comments
Open
2 tasks done

Noindex URLs with unapproved comment parameter #21939

jdevalk opened this issue Jan 1, 2025 · 2 comments

Comments

@jdevalk
Copy link
Contributor

jdevalk commented Jan 1, 2025

When you leave a comment on a site and that comment goes into moderation, by default, WordPress redirects you to the post permalink, with an unapproved and a moderation-hash parameter. This means that a comment that is not approved can be visible on the frontend of a site, and still be indexed, because those URLs are not noindexed by WordPress.

More details in my blog post, especially the aside.

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

To Reproduce

Step-by-step reproduction instructions

  1. Make sure all comments go to moderation.
  2. Leave a comment on a post.
  3. See that you're redirect to a post with the unapproved parameter.
  4. See that the URL is not noindex'ed.

Expected results

The URL should be noindex'ed.

@jdevalk
Copy link
Contributor Author

jdevalk commented Jan 1, 2025

Note I've created a similar ticket for WP core.

@josevarghese
Copy link
Contributor

Hi Joost,

Thanks for the detailed feature request.

I escalated the feature request to the respective team last week and am currently awaiting an update from the development team. In the meantime, I noticed that the PR (WordPress/wordpress-develop#8070) has been merged into the Core. As a result, I have asked the team to check if any changes are required in the plugin code.

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

No branches or pull requests

2 participants