From 6645e885742ceef453d0fd5c6a13571150e6c3fb Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Wed, 20 Apr 2022 19:17:51 +0200 Subject: [PATCH] Fixed `homeUrl` in default `homeLink` The Phpdoc descriptions says "If this property is not set, it will default to a link pointing to [[\yii\web\Application::homeUrl]] with the label 'Home'. If this property is false, the home link will not be rendered." --- src/Breadcrumbs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Breadcrumbs.php b/src/Breadcrumbs.php index 6a2fc8c..c2e79b3 100644 --- a/src/Breadcrumbs.php +++ b/src/Breadcrumbs.php @@ -111,7 +111,7 @@ class Breadcrumbs extends Widget if ($this->homeLink === []) { $links[] = $this->renderItem([ 'label' => Yii::t('yii/bootstrap5', 'Home'), - 'url' => '/', + 'url' => Yii::$app->homeUrl, ], $this->itemTemplate); } elseif ($this->homeLink !== false) { $links[] = $this->renderItem($this->homeLink, $this->itemTemplate);