From 4015034ec38b0a540151874e9a84f708c1965406 Mon Sep 17 00:00:00 2001 From: Christel Westerberg Date: Mon, 26 Aug 2024 14:52:23 +0200 Subject: [PATCH] fix: logic issue with href --- components/JsonToHtml/renderOptions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/JsonToHtml/renderOptions.tsx b/components/JsonToHtml/renderOptions.tsx index 48459c59b..e56b0a6de 100644 --- a/components/JsonToHtml/renderOptions.tsx +++ b/components/JsonToHtml/renderOptions.tsx @@ -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 (