Commit 0deff97232548d1c29795033171599caef6c6f09
1 parent
fcbb31d1
canonical update
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/views/layouts/main.php
... | ... | @@ -78,7 +78,7 @@ $this->registerJs(" |
78 | 78 | <title><?= Seo::widget([ 'row'=>'title'])?></title> |
79 | 79 | <?= Seo::widget([ 'row'=>'description'])?> |
80 | 80 | <?= Seo::widget([ 'row'=>'meta'])?> |
81 | - <link rel="canonical" href="<?= 'http://'.$_SERVER['HTTP_HOST'].Yii::$app->request->url ?>" /> | |
81 | + <?= $this->registerLinkTag(['rel' => 'canonical', 'href' => Url::canonical()]); ?> | |
82 | 82 | <link rel="shortcut icon" href="<?= Yii::$app->request->baseUrl ?>/img/favicon.ico" type="image/x-icon"/> |
83 | 83 | <?php $this->head () ?> |
84 | 84 | ... | ... |