fix(theme-common): breadcrumbs home bug in docs-only (#6824)

This commit is contained in:
Sébastien Lorber 2022-03-03 13:20:02 +01:00 committed by GitHub
parent df6b184270
commit 2144db0f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ describe('routesUtils findHomePageRoute', () => {
{path: '/b', exact: true},
{
path: '/',
exact: false,
exact: undefined,
routes: [{path: '/c', exact: true}, homePage],
},
],

View File

@ -23,7 +23,7 @@ export function findHomePageRoute({
}
function isHomeParentRoute(route: Route): boolean {
return route.path === baseUrl && route.exact === false;
return route.path === baseUrl && !route.exact;
}
function doFindHomePageRoute(routes: Route[]): Route | undefined {