diff --git a/var/Widget/Menu.php b/var/Widget/Menu.php index d3d89344..1e400529 100644 --- a/var/Widget/Menu.php +++ b/var/Widget/Menu.php @@ -159,6 +159,10 @@ class Widget_Menu extends Typecho_Widget parse_str($currentUrlParts['query'], $currentUrlParams); } + if ('/' == $currentUrlParts['path'][strlen($currentUrlParts['path']) - 1]) { + $currentUrlParts['path'] .= 'index.php'; + } + foreach ($extendingParentMenu as $key => $val) { $parentNodes[10 + $key] = $val; }