Skip to content

Commit 003b8b2

Browse files
sestinjcursoragent
andauthored
docs: default to IDE Extensions section and add favicon (#12636)
Change the no-match fallback in DocsShell findActiveTab to return the first nav tab (IDE Extensions) instead of the last (CLI), so the docs root defaults to IDE Extensions. Add app/favicon.ico so /favicon.ico requests resolve via App Router metadata instead of falling through the optional catch-all route. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ffff1f2 commit 003b8b2

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs-site/app/favicon.ico‎

31.8 KB
Binary file not shown.

‎docs-site/components/docs/DocsShell.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function findActiveTab(nav: NavTab[], slug: string) {
2929
}
3030
}
3131
}
32-
return nav[nav.length - 1];
32+
return nav[0];
3333
}
3434

3535
function slugToLabel(slug: string, titleMap?: Record<string, string>) {

0 commit comments

Comments
 (0)