Skip to content

Commit

Permalink
Merge pull request #1607 from hlxsites/geo-coveo
Browse files Browse the repository at this point in the history
geo coveo search issue
  • Loading branch information
dev-rajneeshkumar authored Jan 20, 2025
2 parents 234845b + 54fa8f1 commit aff1d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/resources/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aff1d43

Please sign in to comment.