[-] BO : fixed bug #PSCFV-2878 - Displaying wrong link in the SEO tab of a product using multistore
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
onmousedown="updateFriendlyURLByName();">{l s='Generate'}</a>
|
||||
{l s='Friendly URL from product name.'}<br /><br />
|
||||
{l s='Product link will look like this:'}
|
||||
{if $ps_ssl_enabled}https://{else}http://{/if}{$smarty.server.SERVER_NAME}{$smarty.const.__PS_BASE_URI__}{if isset($product->id)}{$product->id}{else}<b>id_product</b>{/if}-<span id="friendly-url">{$product->link_rewrite[$default_language]}</span>.html</p>
|
||||
{$curent_shop_url|escape:'htmlall':'UTF-8'}lang/{if isset($product->id)}{$product->id}{else}<b>id_product</b>{/if}-<span id="friendly-url">{$product->link_rewrite[$default_language]}</span>.html</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -2715,7 +2715,8 @@ class AdminProductsControllerCore extends AdminController
|
||||
'product' => $product,
|
||||
'languages' => $this->_languages,
|
||||
'default_language' => (int)Configuration::get('PS_LANG_DEFAULT'),
|
||||
'ps_ssl_enabled' => Configuration::get('PS_SSL_ENABLED')
|
||||
'ps_ssl_enabled' => Configuration::get('PS_SSL_ENABLED'),
|
||||
'curent_shop_url' => $this->context->shop->getBaseURL()
|
||||
));
|
||||
|
||||
$this->tpl_form_vars['custom_form'] = $data->fetch();
|
||||
|
||||
Reference in New Issue
Block a user