Skip to content

Commit 354bf3c

Browse files
authored
Fix Copilot Cookbook navigation bar duplicate entries (#57198)
1 parent 37d49b1 commit 354bf3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/copilot/tutorials/copilot-chat-cookbook/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ topics:
1212
layout: category-landing
1313
sidebarLink:
1414
text: All prompts
15-
href: /copilot/copilot-chat-cookbook
15+
href: /copilot/tutorials/copilot-chat-cookbook
1616
spotlight:
1717
- article: /testing-code/generate-unit-tests
1818
image: /assets/images/copilot-landing/generating_unit_tests.png

src/landings/components/SidebarProduct.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function NavListItem({ childPage }: { childPage: ProductTreeNode }) {
102102
{childPage.sidebarLink.text}
103103
</NavList.Item>
104104
)}
105-
{specialCategory && (
105+
{specialCategory && !childPage.sidebarLink && (
106106
<NavList.Item href={childPage.href} as={Link} aria-current={isActive ? 'page' : false}>
107107
{childPage.title}
108108
</NavList.Item>

0 commit comments

Comments
 (0)