diff --git a/root/layout/components/ExternalLinks.js b/root/layout/components/ExternalLinks.js index b40bc44eee0..ab00dc16e90 100644 --- a/root/layout/components/ExternalLinks.js +++ b/root/layout/components/ExternalLinks.js @@ -87,6 +87,7 @@ component ExternalLinks( for (let i = 0; i < relationships.length; i++) { const relationship = relationships[i]; const target = relationship.target; + console.log(target); const entityCredit = entity.id === relationship.entity0_id ? relationship.entity0_credit : relationship.entity1_credit; @@ -120,13 +121,19 @@ component ExternalLinks( />, ); } else if (linkType.name === 'review') { + const urlObject = new URL(target.name); + const hostName = urlObject.host.replace('www.', ''); + blogsAndReviews.push( , );