From cdc373eaf0954d1986e23b61210fdaface3af3a0 Mon Sep 17 00:00:00 2001 From: Michael Della Bitta Date: Tue, 6 Dec 2022 21:26:56 +0000 Subject: [PATCH] Removed user input from JSON-LD markup (#1246) --- components/ItemComponents/Content/JsonLdMarkup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ItemComponents/Content/JsonLdMarkup.js b/components/ItemComponents/Content/JsonLdMarkup.js index e333872ae..82861845d 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(),