Merged in fix/logic-error-href (pull request #498)
fix: logic issue with href Approved-by: Michael Zetterberg
This commit is contained in:
@@ -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
|
// If entry is not an ImageContainer, it is a page and we return it as a link
|
||||||
const props = extractPossibleAttributes(node.attrs)
|
const props = extractPossibleAttributes(node.attrs)
|
||||||
const href =
|
const href =
|
||||||
entry.node?.web?.original_url ??
|
entry.node?.web?.original_url ||
|
||||||
`/${entry.node.system.locale}${entry.node.url}`
|
`/${entry.node.system.locale}${entry.node.url}`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user