wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Call Schema.org with https rather than http when site is https

Open AskKim opened this issue 11 years ago • 2 comments

We seem to have an "http" hard coded into our json output even though schema.org is available and defaults to an https. https://schema.org/

Preferentially - or at least when serving an https page - it would be better if this call was made to http so that the user is serving all https links where possible.

An example of this is the code from https://leatherfurnitureusa.com/ via ticket # 85865

http vs https 2

In the screenshot you can see that it's only the schema URL that is not https even though the website URL is being served correctly .

Currently affecting at least Yoast SEO/Premium 3.0.3 on WordPress 4.3.1. I unfortunately don't have an ssl cert on my dev site to find out if this is affecting prior versions.

AskKim avatar Nov 24 '15 08:11 AskKim

These are currently equivalent, with far future moving to https as preference, see https://schema.org/docs/faq.html#19

I don't think they should correspond to site's settings, we should probably just update all of them to https (though there is no hurry to).

Rarst avatar Nov 24 '15 15:11 Rarst

Fix here: https://github.com/Yoast/wordpress-seo/pull/8975. Therefore, I'm closing this.

benvaassen avatar Aug 03 '18 07:08 benvaassen