diff --git a/inc/common.php b/inc/common.php index 9a1da79075cd016ad371dd276aac49e306306bd7..c27640d8fc38b8525138a80b4e2eac02f5d1a5e7 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; }