diff --git a/blocks/resources/resources.js b/blocks/resources/resources.js index 1f2fcc7e3..0c0794beb 100644 --- a/blocks/resources/resources.js +++ b/blocks/resources/resources.js @@ -405,7 +405,7 @@ export async function coveoResources(target) { const subCategory = encodeURIComponent(getMetadata('sub-category').trim()); let searchTitle = encodeURIComponent(getMetadata('search-title').trim()); if (!searchTitle) { - searchTitle = document.querySelector('main h1').textContent; + searchTitle = encodeURIComponent(getMetadata('og:title').trim()); } let params; if (!subCategory) {