Add to the context the site URL based on the language (Used in the SEO tab)
This commit is contained in:
@@ -315,9 +315,10 @@ class ProductController extends AbstractSeoCrudController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The "SEO" tab form
|
// The "SEO" tab form
|
||||||
|
$locale = $object->getLocale();
|
||||||
$data = array(
|
$data = array(
|
||||||
'id' => $object->getId(),
|
'id' => $object->getId(),
|
||||||
'locale' => $object->getLocale(),
|
'locale' => $locale,
|
||||||
'url' => $object->getRewrittenUrl($this->getCurrentEditionLocale()),
|
'url' => $object->getRewrittenUrl($this->getCurrentEditionLocale()),
|
||||||
'meta_title' => $object->getMetaTitle(),
|
'meta_title' => $object->getMetaTitle(),
|
||||||
'meta_description' => $object->getMetaDescription(),
|
'meta_description' => $object->getMetaDescription(),
|
||||||
@@ -327,6 +328,9 @@ class ProductController extends AbstractSeoCrudController
|
|||||||
$seoForm = new SeoForm($this->getRequest(), "form", $data);
|
$seoForm = new SeoForm($this->getRequest(), "form", $data);
|
||||||
$this->getParserContext()->addForm($seoForm);
|
$this->getParserContext()->addForm($seoForm);
|
||||||
|
|
||||||
|
// URL based on the language
|
||||||
|
$this->getParserContext()->set('url_language', $this->getUrlLanguage($locale));
|
||||||
|
|
||||||
|
|
||||||
// The "General" tab form
|
// The "General" tab form
|
||||||
$data = array(
|
$data = array(
|
||||||
|
|||||||
Reference in New Issue
Block a user