Commit 796538ed63e482661e735138bfcb438202717f9e
Merge branch 'canonical' of gitlab.artweb.com.ua:root/new_rukzachok
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/views/layouts/main.php
... | ... | @@ -90,7 +90,7 @@ $this->registerJs(" |
90 | 90 | <title><?= Seo::widget([ 'row'=>'title'])?></title> |
91 | 91 | <?= Seo::widget([ 'row'=>'description'])?> |
92 | 92 | <?= Seo::widget([ 'row'=>'meta'])?> |
93 | - <?php $this->registerLinkTag(['rel' => 'canonical', 'href' => Yii::$app->urlManager->baseUrl.Yii::$app->request->url ]); ?> | |
93 | + <?php $this->registerLinkTag(['rel' => 'canonical', 'href' => substr(Yii::$app->urlManager->baseUrl.Yii::$app->request->url, 0, strpos(Yii::$app->urlManager->baseUrl.Yii::$app->request->url, '?')) ]); ?> | |
94 | 94 | <link rel="shortcut icon" href="<?= Yii::$app->urlManager->baseUrl ?>/img/favicon.ico" type="image/x-icon"/> |
95 | 95 | <?php $this->head () ?> |
96 | 96 | ... | ... |