We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f609fec commit 9cb245cCopy full SHA for 9cb245c
1 file changed
src/utils/content.ts
@@ -74,7 +74,7 @@ function resolveLabel(t: (key: string) => string, labelKey?: string, segment?: s
74
* Build breadcrumbs
75
*/
76
export function buildBreadcrumbs(pathname: string, t: (key: string) => string): BreadcrumbItem[] {
77
- const segments = pathname.replace(/^\/|\/$/g, '').split('/');
+ const segments = pathname.replace(/^\/|\/$|\.html$/g, '').split('/');
78
79
// Need at least lang + one content segment
80
if (segments.length < 2) return [];
0 commit comments