diff --git a/libs/navigation/bootstrapper.js b/libs/navigation/bootstrapper.js index acf499cda1..e1d54c5c98 100644 --- a/libs/navigation/bootstrapper.js +++ b/libs/navigation/bootstrapper.js @@ -10,10 +10,17 @@ export default async function bootstrapBlock(miloLibs, blockConfig) { const block = createTag(targetEl, { class: name }); document.body[blockConfig.appendType](block); } - // Configure Unav if unav components are in configs - if (blockConfig.targetEl === 'header' && blockConfig.unavComponents) { - const unavMeta = createTag('meta', { name: 'universal-nav', content: blockConfig.unavComponents }); - document.head.append(unavMeta); + // Configure Unav components and redirect uri + if (blockConfig.targetEl === 'header') { + ['unavComponents', 'redirect'].forEach((key) => { + if (blockConfig[key]) { + const metaTag = createTag('meta', { + name: key === 'unavComponents' ? 'universal-nav' : 'adobe-home-redirect', + content: blockConfig[key], + }); + document.head.append(metaTag); + } + }); } initBlock(document.querySelector(targetEl)); diff --git a/libs/navigation/navigation.js b/libs/navigation/navigation.js index 742305b674..276c32bb35 100644 --- a/libs/navigation/navigation.js +++ b/libs/navigation/navigation.js @@ -64,7 +64,7 @@ export default async function loadBlock(configs, customLib) { if (configBlock) { bootstrapBlock(`${miloLibs}/libs`, { ...block, - ...(block.key === 'header' && { unavComponents: configBlock.unavComponents }), + ...(block.key === 'header' && { unavComponents: configBlock.unavComponents, redirect: configBlock.redirect }), }); } });