diff --git a/docs/config.php b/docs/config.php index 808ebc3..5fd8950 100644 --- a/docs/config.php +++ b/docs/config.php @@ -31,7 +31,7 @@ return [ // helpers 'isActive' => function ($page, $path) { - return ends_with(trimPath($page->getPath()), trimPath($path)); + return ends_with(trimPath($page->getPath()), trimPath($page->version() . '/' . $path)); }, 'isActiveParent' => function ($page, $menuItem) { if (is_object($menuItem) && $menuItem->children) {