Merge pull request #83 from reuters-graphics/canonical-hotfix

closes #82
This commit is contained in:
Jon McClure 2023-06-15 19:51:39 +01:00 committed by GitHub
commit eb4131a24a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@
};
$: origin = getOrigin(baseUrl);
$: canonicalUrl = origin + pageUrl.pathname;
$: canonicalUrl = (origin + pageUrl.pathname).replace(/index\.html\/$/, '');
const orgLdJson = {
'@context': 'http://schema.org',