зеркало из https://github.com/github/docs.git
Account for overlapping paths (#20957)
This commit is contained in:
Родитель
4a51ceed26
Коммит
d565050584
|
@ -54,8 +54,8 @@ export const SidebarProduct = () => {
|
|||
const isStandaloneCategory = childPage.page.documentType === 'article'
|
||||
|
||||
const childTitle = childPage.renderedShortTitle || childPage.renderedFullTitle
|
||||
|
||||
const isActive = routePath.includes(childPage.href) || routePath === childPage.href
|
||||
const isActive =
|
||||
routePath.includes(childPage.href + '/') || routePath === childPage.href
|
||||
const defaultOpen = hasExactCategory ? isActive : false
|
||||
return (
|
||||
<li
|
||||
|
|
Загрузка…
Ссылка в новой задаче