YoastSEO.js
YoastSEO.js copied to clipboard
Custom Post Type slug is ignored in the Page Analysis
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?
- Create custom post type page
- Create focus keyword using the custom post type slug
- Review Yoast SEO page analysis
Technical info
- WordPress version: 4.8.1
- Yoast SEO version: 5.7.1
- Relevant plugins in case of a bug:
Yoast is only able to read the slug:
Possible solutions:
We can either:
- Improve the description of the analysis OR
- Check the entire URL for the focus keyword instead of just the slug
Please inform the customer of conversation # 231800 when this conversation has been closed.
Related https://github.com/Yoast/YoastSEO.js/issues/993