diff --git a/scripts/utils.js b/scripts/utils.js index e6bf785..53c7cf2 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -115,8 +115,8 @@ async function buildArticleHeader(el) { const tag = getMetadata('article:tag'); const category = tag || 'News'; const author = getMetadata('author') || 'Adobe Communications Team'; - const { codeRoot } = getConfig(); - const authorURL = getMetadata('author-url') || (author ? `${codeRoot}/authors/${author.replace(/[^0-9a-z]/gi, '-').toLowerCase()}` : null); + const { locale } = getConfig(); + const authorURL = getMetadata('author-url') || (author ? `${locale.contentRoot}/authors/${author.replace(/[^0-9a-z]/gi, '-').toLowerCase()}` : null); const publicationDate = getMetadata('publication-date'); const categoryTag = getLinkForTopic(category); const articleHeaderBlockEl = buildBlock('article-header', [