Skip to content

Commit

Permalink
Fix breadcrumbs not rendering properly when not including home (#2976)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahhenshaw authored Dec 7, 2020
1 parent ef8d7ef commit 3d9abba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tags/Nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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 3d9abba

Please sign in to comment.