feat(WEB-93): add Header to CMS and render it in Next
This commit is contained in:
@@ -263,8 +263,9 @@ export const renderOptions: RenderOptions = {
|
||||
}
|
||||
} else {
|
||||
const props = extractPossibleAttributes(node.attrs)
|
||||
const href = node.attrs?.locale ? `/${node.attrs.locale}${node.attrs.href}` : node.attrs.href
|
||||
return (
|
||||
<Link {...props} href={node.attrs.href} key={node.uid}>
|
||||
<Link {...props} href={href} key={node.uid}>
|
||||
{next(node.children, embeds, fullRenderOptions)}
|
||||
</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user