From 92493c42b589090a764937447e9b8d8a8cdb2371 Mon Sep 17 00:00:00 2001 From: Micah Henshaw Date: Mon, 7 Dec 2020 15:08:26 +1100 Subject: [PATCH] Fixes #1618 where breadcumbs don't display when using include_home = false --- src/Tags/Nav.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tags/Nav.php b/src/Tags/Nav.php index 3a29d48f60..aeebf2b328 100644 --- a/src/Tags/Nav.php +++ b/src/Tags/Nav.php @@ -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();