Skip to content

Commit

Permalink
Fixes statamic#1618 where breadcumbs don't display when using include…
Browse files Browse the repository at this point in the history
…_home = false
  • Loading branch information
micahhenshaw committed Dec 7, 2020
1 parent 7f4fd19 commit 92493c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tags/Nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function breadcrumbs()

return $uri;
})->mapWithKeys(function ($uri) {
$uri = Str::ensureLeft($uri, '/');
return [$uri => Data::findByUri($uri, Site::current()->handle())];
})->filter();

Expand Down

0 comments on commit 92493c4

Please sign in to comment.