diff --git a/pygeoapi/templates/base.html b/pygeoapi/templates/base.html index c016b9020..4f66b31ff 100644 --- a/pygeoapi/templates/base.html +++ b/pygeoapi/templates/base.html @@ -69,7 +69,8 @@ var head = document.getElementsByTagName('head')[0]; var jsonld_datablock = document.createElement('script'); jsonld_datablock.type = "application/ld+json"; - jsonld_datablock.textContent = xhr.responseText; + //remove full context path, because search engines don't expect it here, pyld requires it. + jsonld_datablock.textContent = xhr.responseText.replace('docs/jsonldcontext.jsonld',''); head.appendChild(jsonld_datablock); } };