mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
fix(theme-common): breadcrumbs home bug in docs-only (#6824)
This commit is contained in:
parent
df6b184270
commit
2144db0f58
|
|
@ -69,7 +69,7 @@ describe('routesUtils findHomePageRoute', () => {
|
|||
{path: '/b', exact: true},
|
||||
{
|
||||
path: '/',
|
||||
exact: false,
|
||||
exact: undefined,
|
||||
routes: [{path: '/c', exact: true}, homePage],
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue