Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.76k stars 889 forks source link

Canonical When No Indexing #21681

Open phil-sola opened 6 days ago

phil-sola commented 6 days ago

Currently there is no canoncial tag output when the WordPress site is set to noindex. This also applies to the JSON head in the REST API response.

This isn't ideal for headless WordPress sites using something else for the frontend as the WordPress API site will always be set to noindex.

Please can we review and assess adding canonical tags in, even when set to noindex? Even if it's only in the REST response, as it is a huge feature missing from the JSON head data which is very much needed for the front end of the site.

Not all WordPress sites these days are monolithic and this should be considered.

josevarghese commented 1 day ago

Hi @phil-sola

Thanks for using the Yoast SEO plugin and for creating the issue. We are discussing this with our development team and will update you soon with more details.

Thanks for your patience.

phil-sola commented 19 hours ago

Thanks for the update here @josevarghese, this would be a fantastic addition for a ton of headless sites powered by Yoast. Look forward to hearing more