diff --git a/components/ItemComponents/Content/JsonLdMarkup.js b/components/ItemComponents/Content/JsonLdMarkup.js index e333872a..82861845 100644 --- a/components/ItemComponents/Content/JsonLdMarkup.js +++ b/components/ItemComponents/Content/JsonLdMarkup.js @@ -228,9 +228,9 @@ const JsonLdMarkup = ({ item, router }) => { "@context": "http://schema.org/", "@type": type(), // TODO: Is there a better way to generate the api URI? - "@id": "http://api.dp.la/items/" + router.query.itemId, + "@id": "http://api.dp.la/items/" + item.id, // TODO: Is there a better way to generate the URL of this page? - mainEntityOfPage: "https://dp.la/item/" + router.query.itemId, + mainEntityOfPage: "https://dp.la/item/" + item.id, isAccessibleForFree: true, provider: provider(), license: license(),