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, follow" cause google error notifications when redirecting to webinars/events which have "noindex, nofollow" #19034

Open
Songoo7 opened this issue Oct 5, 2022 · 1 comment

Comments

@Songoo7
Copy link

Songoo7 commented Oct 5, 2022

Please give us a description of what happened.

In admin "Yoast" -> "Search appearance" -> "Content types" (or taxonomies) I am unable to set "noindex, nofollow" (this is only possible at single post, but there are too many pages to do that manually)

Our events posts are redirects to webinars/events on other services which have "noindex,nofollow" , When I set this post category to "Show Events in search results?" - "NO" it will generate "noindex, follow" , google analytics catch this and report back as error on page.

Please describe what you expected to happen and why.

To be able to set "noindex, nofollow" to post type or at least to tag. To be able to match them on redirect target page.

How can we reproduce this behavior?

  1. set "Show Events in search results?" - "NO" to any post type (events for example)
  2. add redirect to any page on other domain which has 'noindex, nofollow'
  3. wait for google analytics errors .

Yoast SEO version: 15.6.2

@mmikhan
Copy link
Member

mmikhan commented Oct 14, 2022

Yoast SEO comes with a filter called wpseo_robots that you can use to set noindex, nofollow on any custom post types based on your need. You may visit https://developer.yoast.com/customization/apis/metadata-api/ to get more information about our available hooks and filters.

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