From 92493c42b589090a764937447e9b8d8a8cdb2371 Mon Sep 17 00:00:00 2001 From: Micah Henshaw Date: Mon, 7 Dec 2020 15:08:26 +1100 Subject: [PATCH 1/2] 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(); From c8953f23252e06b47e4df6a2d12c62298af6ffed Mon Sep 17 00:00:00 2001 From: Micah Henshaw Date: Mon, 7 Dec 2020 15:19:22 +1100 Subject: [PATCH 2/2] Fixed CI styling --- src/Tags/Nav.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tags/Nav.php b/src/Tags/Nav.php index aeebf2b328..b6fd47a69a 100644 --- a/src/Tags/Nav.php +++ b/src/Tags/Nav.php @@ -33,6 +33,7 @@ public function breadcrumbs() return $uri; })->mapWithKeys(function ($uri) { $uri = Str::ensureLeft($uri, '/'); + return [$uri => Data::findByUri($uri, Site::current()->handle())]; })->filter();