Merge pull request #1210 from openclassify/dia

#4732 oc.com "Duplicate page titles and descriptions"
This commit is contained in:
Muammer Top 2021-10-25 09:46:52 +03:00 committed by GitHub
commit 7595c0e6ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,6 +484,10 @@ class AdvsController extends PublicController
}
}
if (\request()->page) {
$metaTitle .= ($metaTitle ? " | " : "") . \request()->page;
}
$this->template->set('showTitle', $showTitle);
$this->template->set('meta_title', $metaTitle);
@ -672,8 +676,6 @@ class AdvsController extends PublicController
}
}
$options = $this->optionRepository->findAllBy('adv_id', $id);
$features = array();
if ($this->adv_model->is_enabled('customfields')) {
$features = app('Visiosoft\CustomfieldsModule\Http\Controller\CustomFieldsController')->view($adv);
@ -681,6 +683,8 @@ class AdvsController extends PublicController
$isActiveDopings = $this->adv_model->is_enabled('dopings');
$this->template->set('meta_title', trans('visiosoft.module.advs::field.preview') . " $adv->name" . ' ' . setting_value('streams::domain'));
return $this->view->make('visiosoft.module.advs::new-ad/preview/preview',
compact('adv', 'categories', 'features', 'isActiveDopings'));
}