diff --git a/admin-dev/themes/default/template/controllers/products/seo.tpl b/admin-dev/themes/default/template/controllers/products/seo.tpl
index d779431f3..f4766d4ed 100644
--- a/admin-dev/themes/default/template/controllers/products/seo.tpl
+++ b/admin-dev/themes/default/template/controllers/products/seo.tpl
@@ -87,7 +87,7 @@
onmousedown="updateFriendlyURLByName();">{l s='Generate'}
{l s='Friendly URL from product name.'}
{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}id_product{/if}-{$product->link_rewrite[$default_language]}.html
+ {$curent_shop_url|escape:'htmlall':'UTF-8'}lang/{if isset($product->id)}{$product->id}{else}id_product{/if}-{$product->link_rewrite[$default_language]}.html
diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php
index 3c928f264..27c3a9e16 100644
--- a/controllers/admin/AdminProductsController.php
+++ b/controllers/admin/AdminProductsController.php
@@ -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();