diff --git a/packages/design-system/lib/components/JsonToHtml/renderOptions.tsx b/packages/design-system/lib/components/JsonToHtml/renderOptions.tsx index 3534bb99e..c022a8e9f 100644 --- a/packages/design-system/lib/components/JsonToHtml/renderOptions.tsx +++ b/packages/design-system/lib/components/JsonToHtml/renderOptions.tsx @@ -451,17 +451,22 @@ export const renderOptions: RenderOptions = { ) { // If entry is not an ImageContainer, it is a page and we return it as a link const { className, ...props } = extractPossibleAttributes(node.attrs) + const entryHref = entry.node.url - const href = node.attrs?.locale + const nodeHref = node.attrs?.locale ? `/${node.attrs.locale}${node.attrs.href ?? node.attrs.url}` : ((node.attrs.href ?? node.attrs.url) as string) + if (!entryHref && !nodeHref) { + return null + } + return ( {next( diff --git a/packages/trpc/lib/graphql/Fragments/PageLink/HotelPageLink.graphql b/packages/trpc/lib/graphql/Fragments/PageLink/HotelPageLink.graphql index cc5f1f5ff..23b7d2fd9 100644 --- a/packages/trpc/lib/graphql/Fragments/PageLink/HotelPageLink.graphql +++ b/packages/trpc/lib/graphql/Fragments/PageLink/HotelPageLink.graphql @@ -6,8 +6,4 @@ fragment HotelPageLink on HotelPage { } title url - # TODO: Might need to add this if this is needed for hotel pages. - # web { - # original_url - # } }