Fix generation of link back to main page

This commit is contained in:
vv221 2020-04-05 18:24:59 +02:00
parent 8dc402606e
commit b2c7692a59

View file

@ -62,7 +62,7 @@ class MenuItem extends AbstractItem {
} }
// Add namespace of the target child page, unless the special value "_main" has been used // Add namespace of the target child page, unless the special value "_main" has been used
// "_main" is used to generate a link back to the main parent page // "_main" is used to generate a link back to the main parent page
if ( $this->type !== '_main' ) { if ( $type !== '_main' ) {
$target_path[] = $type; $target_path[] = $type;
} }
$this->id = implode(':', array_merge($target_path, $page_path)); $this->id = implode(':', array_merge($target_path, $page_path));