mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
#2329 Duplicate pages without canonical
This commit is contained in:
parent
cb53f9bf82
commit
4a424ea7bd
@ -200,6 +200,10 @@ a.sort-by-open-dropdown:hover {
|
|||||||
color: #8598AA;
|
color: #8598AA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-view-type button {
|
||||||
|
background-color: unset;
|
||||||
|
}
|
||||||
|
|
||||||
.list-view-type button:focus {
|
.list-view-type button:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -398,6 +398,12 @@ class AdvsController extends PublicController
|
|||||||
$this->template->set('meta_title', $user->name() . ' ' . trans('visiosoft.module.advs::field.ads'));
|
$this->template->set('meta_title', $user->name() . ' ' . trans('visiosoft.module.advs::field.ads'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set rel="canonical"
|
||||||
|
$canonParam = $param;
|
||||||
|
unset($canonParam['sort_by'], $canonParam['doping']);
|
||||||
|
$canonUrl = fullLink($canonParam, \request()->url());
|
||||||
|
$this->template->set('additional_meta', "<link rel='canonical' href='$canonUrl'/>");
|
||||||
|
|
||||||
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'checkboxes', 'param',
|
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'checkboxes', 'param',
|
||||||
'user', 'featured_advs', 'viewType', 'topfields', 'selectDropdown', 'selectRange', 'selectImage', 'ranges',
|
'user', 'featured_advs', 'viewType', 'topfields', 'selectDropdown', 'selectRange', 'selectImage', 'ranges',
|
||||||
'seenList', 'radio', 'categoryId', 'cityId', 'allCats', 'catText', 'cFArray');
|
'seenList', 'radio', 'categoryId', 'cityId', 'allCats', 'catText', 'cFArray');
|
||||||
|
|||||||
@ -9,6 +9,9 @@
|
|||||||
{{ setting_value('visiosoft.module.advs::google_statistic_code')|raw }}
|
{{ setting_value('visiosoft.module.advs::google_statistic_code')|raw }}
|
||||||
<!-- Meta Tags -->
|
<!-- Meta Tags -->
|
||||||
|
|
||||||
|
{% set additionalMeta = template.get('additional_meta') %}
|
||||||
|
{{ additionalMeta ? additionalMeta|raw }}
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{% set title = trans(template.meta_title) %}
|
{% set title = trans(template.meta_title) %}
|
||||||
{% set showTitle = template.showTitle is same as(false) ? false : true %}
|
{% set showTitle = template.showTitle is same as(false) ? false : true %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user