Skip to content

Commit 9cb245c

Browse files
committed
Fix breadcrumbs
1 parent f609fec commit 9cb245c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function resolveLabel(t: (key: string) => string, labelKey?: string, segment?: s
7474
* Build breadcrumbs
7575
*/
7676
export function buildBreadcrumbs(pathname: string, t: (key: string) => string): BreadcrumbItem[] {
77-
const segments = pathname.replace(/^\/|\/$/g, '').split('/');
77+
const segments = pathname.replace(/^\/|\/$|\.html$/g, '').split('/');
7878

7979
// Need at least lang + one content segment
8080
if (segments.length < 2) return [];

0 commit comments

Comments
 (0)