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

no-indexed WooCommerce pages not excluded from sitemap #21297

Closed
3 tasks done
strarsis opened this issue Sep 7, 2018 · 2 comments
Closed
3 tasks done

no-indexed WooCommerce pages not excluded from sitemap #21297

strarsis opened this issue Sep 7, 2018 · 2 comments

Comments

@strarsis
Copy link

strarsis commented Sep 7, 2018

Describe the bug
WooCommerce pages which are no-index (my account, cart and payment pages)
are still included in Yoast sitemap.

Google Search Console also reports this as an error because the
pages are listed in sitemap but are no-indexed individually.

To Reproduce

  • Install + activate WooCommerce plugin.
  • Install + activate Yoast SEO plugin

Expected behavior
The WooCommerce no-indexed page being excluded from the sitemap.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

This is probably caused by WooCommerce injecting the no-index meta/header separately from Yoast.
The WooCommerce pages can be excluded from sitemap using the wpseo_exclude_from_sitemap_by_post_ids filter.

@strarsis strarsis changed the title no-index WooCommerce pages not excluded from sitemap no-indexed WooCommerce pages not excluded from sitemap Sep 7, 2018
@glagonikas
Copy link
Contributor

glagonikas commented Sep 7, 2018

The no-index and sitemap are both parts of Yoast SEO, so it's unlikely this bug is caused by WooCommerce. Have you reached out to their support?

Also, i'm unable to reproduce this on our setup where we use Yoast SEO Premium. Whenever i set a page to "no-index", it automatically gets removed from the sitemap.

@claudiulodro
Copy link
Contributor

Hi there.

This is something Yoast would have to handle in their plugin, as sitemaps are not part of the WooCommerce plugin. I would reach out to them. Hope this clears things up.

Thanks.

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

No branches or pull requests

3 participants