Yoast / YoastSEO.js

Analyze content on a page and give SEO feedback as well as render a snippet preview.
GNU General Public License v3.0
403 stars 170 forks source link

Custom Post Type slug is ignored in the Page Analysis #1293

Open benvaassen opened 6 years ago

benvaassen commented 6 years ago

Please give us a description of what happened.

Page analysis ignores the custom post type slug when reviewing the page URL the following produces a warning.

https://www.wildimages-phototours.com/photography-tours/antarctica-south-georgia-wildlife-2019/

Focus keyword: Photography

The focus keyword does not appear in the URL for this page. If you decide to rename the URL be sure to check the old URL 301 redirects to the new one!

Please describe what you expected to happen and why.

Expected the page analysis to read the full page URL

How can we reproduce this behavior?

  1. Create custom post type page
  2. Create focus keyword using the custom post type slug
  3. Review Yoast SEO page analysis

Technical info

benvaassen commented 6 years ago

Yoast is only able to read the slug:

1

2

Possible solutions:

We can either:

benvaassen commented 6 years ago

Please inform the customer of conversation # 231800 when this conversation has been closed.

benvaassen commented 6 years ago

Related https://github.com/Yoast/YoastSEO.js/issues/993