From bfa08d479d3d0b01478713103e768479bec0ee6f Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 24 Aug 2022 17:33:32 +0300 Subject: [PATCH] Fix #275: Fix favicon link in views/layouts/main.php (#276) --- views/layouts/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/layouts/main.php b/views/layouts/main.php index 0fa458c..c204435 100644 --- a/views/layouts/main.php +++ b/views/layouts/main.php @@ -17,7 +17,7 @@ $this->registerMetaTag(['charset' => Yii::$app->charset], 'charset'); $this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1, shrink-to-fit=no']); $this->registerMetaTag(['name' => 'description', 'content' => $this->params['meta_description'] ?? '']); $this->registerMetaTag(['name' => 'keywords', 'content' => $this->params['meta_keywords'] ?? '']); -$this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => '@web/favicon.ico']); +$this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => Yii::getAlias('@web/favicon.ico')]); ?> beginPage() ?>