Commit 1ad3e6bed3e0b0d6a95670c73da107159fc04558

Authored by Alex Savenko
1 parent d3a50f8b

mata canonical

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
frontend/views/layouts/main.php
... ... @@ -78,6 +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 82 <link rel="shortcut icon" href="<?= Yii::$app->request->baseUrl ?>/img/favicon.ico" type="image/x-icon"/>
82 83 <?php $this->head () ?>
83 84  
... ...