Skip to content

Commit b7544f7

Browse files
mydeabitsandfoxes
authored andcommitted
feat(platform): Use sidebar_title for breadcrumbs (#13402)
1 parent 77e601a commit b7544f7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/platforms/javascript/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
title: Browser JavaScript
22
platformTitle: JavaScript
3+
sidebar_title: JavaScript
34
caseStyle: camelCase
45
supportLevel: production
56
sdk: 'sentry.javascript.browser'

src/components/breadcrumbs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function Breadcrumbs({leafNode}: BreadcrumbsProps) {
1414
for (let node: DocNode | undefined = leafNode; node; node = node.parent) {
1515
if (node && !node.missing) {
1616
const to = node.path === '/' ? node.path : `/${node.path}/`;
17-
const title = node.frontmatter.platformTitle ?? node.frontmatter.title;
17+
const title = node.frontmatter.sidebar_title ?? node.frontmatter.title;
1818

1919
breadcrumbs.unshift({
2020
to,

0 commit comments

Comments
 (0)