Skip to content

Commit

Permalink
Ignoring decorateMeta if the metadata is from promo.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchoi-dev committed Sep 19, 2024
1 parent 1791eb8 commit a89e057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,7 @@ function decorateMeta() {
const contents = document.head.querySelectorAll(`[content*=".${SLD}."]`);
contents.forEach((meta) => {
if (meta.getAttribute('property') === 'hlx:proxyUrl') return;
if (meta.getAttribute('name').endsWith('schedule')) return;
try {
const url = new URL(meta.content);
const localizedLink = localizeLink(`${origin}${url.pathname}`);
Expand Down

0 comments on commit a89e057

Please sign in to comment.