Skip to content

Commit fbfd6c7

Browse files
author
paul van genuchten
committed
google expects plain schema-org url (geopython#576)
* google expects plain schema-org url https://yoast.com/json-ld/ resolves geopython#574 * Revert "google expects plain schema-org url" This reverts commit 7f09d4c. * hack to replace full path for short path, because pyld requires full, search engine expects short
1 parent e3295df commit fbfd6c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pygeoapi/templates/base.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
var head = document.getElementsByTagName('head')[0];
7070
var jsonld_datablock = document.createElement('script');
7171
jsonld_datablock.type = "application/ld+json";
72-
jsonld_datablock.textContent = xhr.responseText;
72+
//remove full context path, because search engines don't expect it here, pyld requires it.
73+
jsonld_datablock.textContent = xhr.responseText.replace('docs/jsonldcontext.jsonld','');
7374
head.appendChild(jsonld_datablock);
7475
}
7576
};

0 commit comments

Comments
 (0)