diff --git a/packages/amis-ui/src/components/menu/SubMenu.tsx b/packages/amis-ui/src/components/menu/SubMenu.tsx index 3970b0cde..b90057303 100644 --- a/packages/amis-ui/src/components/menu/SubMenu.tsx +++ b/packages/amis-ui/src/components/menu/SubMenu.tsx @@ -215,6 +215,7 @@ export class SubMenu extends React.Component { data-depth={depth} onDragStart={onDragStart?.(link)} {...testIdBuilder?.getTestId()} + href={link?.to} > {renderContent()} diff --git a/packages/amis/__tests__/renderers/__snapshots__/Nav.test.tsx.snap b/packages/amis/__tests__/renderers/__snapshots__/Nav.test.tsx.snap index c35be12fe..86ceb8a1e 100644 --- a/packages/amis/__tests__/renderers/__snapshots__/Nav.test.tsx.snap +++ b/packages/amis/__tests__/renderers/__snapshots__/Nav.test.tsx.snap @@ -441,6 +441,7 @@ exports[`Renderer:Nav with defer 1`] = ` class="cxd-Nav-Menu-item-link" data-depth="1" data-id="3" + href="?cat=3" >