diff --git a/core/components/breadcrumbs/model/breadcrumbs/breadcrumbs.class.php b/core/components/breadcrumbs/model/breadcrumbs/breadcrumbs.class.php index 8ec1b92..3be7359 100644 --- a/core/components/breadcrumbs/model/breadcrumbs/breadcrumbs.class.php +++ b/core/components/breadcrumbs/model/breadcrumbs/breadcrumbs.class.php @@ -246,7 +246,7 @@ public function pullResource($resourceId){ $wa = array( 'id' => $resourceId, ); - if (!$this->config['pathThruUnPub']) { + if (!$this->config['pathThruUnPub'] && $resourceId != $this->modx->resource->get('id')) { $wa['published'] = true; $wa['deleted'] = false; } @@ -327,4 +327,4 @@ public function getChunk($name,array $properties = array()) { } return $o; } -} \ No newline at end of file +}