diff --git a/cypress/e2e/breadcrumb.spec.js b/cypress/e2e/breadcrumb.spec.js index 020f84d8..0a7ad692 100644 --- a/cypress/e2e/breadcrumb.spec.js +++ b/cypress/e2e/breadcrumb.spec.js @@ -21,35 +21,26 @@ describe('Breadcrumb JSON-LD', () => { { '@type': 'ListItem', position: 1, - item: { - '@id': 'https://example.com/books', - name: 'Books', - }, + item: 'https://example.com/books', + name: 'Books', }, { '@type': 'ListItem', position: 2, - item: { - '@id': 'https://example.com/books/authors', - name: 'Authors', - }, + item: 'https://example.com/books/authors', + name: 'Authors', }, { '@type': 'ListItem', position: 3, - item: { - '@id': 'https://example.com/books/authors/annleckie', - name: 'Ann Leckie', - }, + item: 'https://example.com/books/authors/annleckie', + name: 'Ann Leckie', }, { '@type': 'ListItem', position: 4, - item: { - '@id': - 'https://example.com/books/authors/annleckie/ancillaryjustice', - name: 'Ancillary Justice', - }, + item: 'https://example.com/books/authors/annleckie/ancillaryjustice', + name: 'Ancillary Justice', }, ], }); diff --git a/cypress/e2e/profilePage.spec.js b/cypress/e2e/profilePage.spec.js index 1c43b05d..ae6a70d2 100644 --- a/cypress/e2e/profilePage.spec.js +++ b/cypress/e2e/profilePage.spec.js @@ -24,13 +24,13 @@ describe('ProfilePage JSON-LD', () => { { '@type': 'ListItem', position: 1, - '@id': 'https://example.com/books', + item: 'https://example.com/books', name: 'Books', }, { '@type': 'ListItem', position: 2, - '@id': 'https://example.com/books/authors', + item: 'https://example.com/books/authors', name: 'Authors', }, ], diff --git a/src/utils/schema/setItemListElements.ts b/src/utils/schema/setItemListElements.ts index ba3c2248..e1db00c1 100644 --- a/src/utils/schema/setItemListElements.ts +++ b/src/utils/schema/setItemListElements.ts @@ -5,7 +5,7 @@ export function setItemListElements(items: ItemListElements[]) { return items.map(item => ({ '@type': 'ListItem', position: item.position, - '@id': item.item, + item: item.item, name: item.name, })); }