diff --git a/libs/utils/utils.js b/libs/utils/utils.js index 07fee41492..7f1a434d83 100644 --- a/libs/utils/utils.js +++ b/libs/utils/utils.js @@ -659,8 +659,7 @@ export function decorateLinks(el) { decorateImageLinks(el); const anchors = el.getElementsByTagName('a'); const { hostname } = window.location; - convertStageLinks({ anchors, config, hostname }); - return [...anchors].reduce((rdx, a) => { + const links = [...anchors].reduce((rdx, a) => { appendHtmlToLink(a); a.href = localizeLink(a.href); decorateSVG(a); @@ -695,6 +694,8 @@ export function decorateLinks(el) { } return rdx; }, []); + convertStageLinks({ anchors, config, hostname }); + return links; } function decorateContent(el) {