From 02692388cab0727948442d2bc9e407305c228142 Mon Sep 17 00:00:00 2001 From: vv221 Date: Fri, 1 May 2020 20:20:18 +0200 Subject: [PATCH] Fix generation of link back to main page --- action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.php b/action.php index dccc97c..8a439ee 100644 --- a/action.php +++ b/action.php @@ -48,7 +48,7 @@ class action_plugin_childrenpages extends DokuWiki_Action_Plugin { $is_child_page = in_array($top_namespace, $children_types); if ( $show_all_links || $is_child_page ) { $main_label = $this->getLang('btn_main'); - $this->addMenuItem($event, '_main', $main_label, $top_namespace); + $this->addMenuItem($event, '_main', $main_label, $is_child_page); } // Add menu items for each child page foreach ( $children_types as $child_type ) {