diff --git a/inc/common.php b/inc/common.php index 0331a1d810997e719de3790811b4e20acd43a753..4f8e684bf46c191fba3864e292ee542e894afed9 100644 --- a/inc/common.php +++ b/inc/common.php @@ -382,9 +382,9 @@ function breadcrumbs() { //first visit? $crumbs = isset($_SESSION[DOKU_COOKIE]['bc']) ? $_SESSION[DOKU_COOKIE]['bc'] : array(); - //we only save on show and existing wiki documents + //we only save on show and existing visible wiki documents $file = wikiFN($ID); - if($ACT != 'show' || !file_exists($file)) { + if($ACT != 'show' || isHiddenPage($ID) || !file_exists($file)) { $_SESSION[DOKU_COOKIE]['bc'] = $crumbs; return $crumbs; }