Merged in fix/logic-error-href (pull request #498)

fix: logic issue with href

Approved-by: Michael Zetterberg
This commit is contained in:
Christel Westerberg
2024-08-26 13:06:11 +00:00
committed by Michael Zetterberg

View File

@@ -323,7 +323,7 @@ export const renderOptions: RenderOptions = {
// If entry is not an ImageContainer, it is a page and we return it as a link
const props = extractPossibleAttributes(node.attrs)
const href =
entry.node?.web?.original_url ??
entry.node?.web?.original_url ||
`/${entry.node.system.locale}${entry.node.url}`
return (