diff --git a/extensions/theme/src/layouts/pages/Static/Navigation.tsx b/extensions/theme/src/layouts/pages/Static/Navigation.tsx index feaf4a9a1a..32b676d080 100644 --- a/extensions/theme/src/layouts/pages/Static/Navigation.tsx +++ b/extensions/theme/src/layouts/pages/Static/Navigation.tsx @@ -27,9 +27,11 @@ export const Navigation: React.ComponentType<{ data?: PublishedMenuData }> = ({ ); } + // We only use the Link component if the item has a `path` or `url` value. + const link = item.path || item.url; return (
  • - {item.title} + {link ? {item.title} : item.title}
  • ); })} diff --git a/packages/cwp-template-aws/template/common/extensions/theme/src/layouts/pages/Static/Navigation.tsx b/packages/cwp-template-aws/template/common/extensions/theme/src/layouts/pages/Static/Navigation.tsx index 5e62bbf1d0..64af0043c1 100644 --- a/packages/cwp-template-aws/template/common/extensions/theme/src/layouts/pages/Static/Navigation.tsx +++ b/packages/cwp-template-aws/template/common/extensions/theme/src/layouts/pages/Static/Navigation.tsx @@ -27,9 +27,11 @@ export const Navigation: React.ComponentType<{ data?: PublishedMenuData }> = ({ ); } + // We only use the Link component if the item has a `path` or `url` value. + const link = item.path || item.url; return (
  • - {item.title} + {link ? {item.title} : item.title}
  • ); })}