fix: logic issue with href

This commit is contained in:
Christel Westerberg
2024-08-26 14:52:23 +02:00
parent f2a71fab8e
commit 4015034ec3

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 (