From 0338df3b04b265b0163512fe0ce216734e8c2c29 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Mon, 31 Jul 2023 19:12:47 -0400 Subject: [PATCH] Fix "http://schema.org" processing. Convert both "http://schema.org/" and "http://schema.org" to "https://schema.org/". --- playground/1.0/playground.js | 2 +- playground/playground.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/1.0/playground.js b/playground/1.0/playground.js index 81bb63796..f78e031f5 100644 --- a/playground/1.0/playground.js +++ b/playground/1.0/playground.js @@ -1467,7 +1467,7 @@ } } // rewrite URLs that we know have secure JSON-LD Contexts - if(url === 'http://schema.org/') { + if(url === 'http://schema.org/' || url === 'http://schema.org') { url = 'https://schema.org/'; } diff --git a/playground/playground.js b/playground/playground.js index 2a022370f..b0f278188 100644 --- a/playground/playground.js +++ b/playground/playground.js @@ -1597,7 +1597,7 @@ } } // rewrite URLs that we know have secure JSON-LD Contexts - if(url === 'http://schema.org/') { + if(url === 'http://schema.org/' || url === 'http://schema.org') { url = 'https://schema.org/'; }