diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml
index eec3f871774..6bd7f603d10 100644
--- a/addons/website/views/website_templates.xml
+++ b/addons/website/views/website_templates.xml
@@ -2568,10 +2568,12 @@ Sitemap: sitemap.xml
diff --git a/addons/website_sale/models/product_template.py b/addons/website_sale/models/product_template.py
index a8e488e647c..a50e6fc25a1 100644
--- a/addons/website_sale/models/product_template.py
+++ b/addons/website_sale/models/product_template.py
@@ -375,8 +375,7 @@ class ProductTemplate(models.Model):
mapping['detail'] = {'name': 'price', 'type': 'html', 'display_currency': options['display_currency']}
mapping['detail_strike'] = {'name': 'list_price', 'type': 'html', 'display_currency': options['display_currency']}
if with_category:
- mapping['extra_link'] = {'name': 'category', 'type': 'text', 'match': True}
- mapping['extra_link_url'] = {'name': 'category_url', 'type': 'text'}
+ mapping['extra_link'] = {'name': 'category', 'type': 'html'}
return {
'model': 'product.template',
'base_domain': domains,
@@ -401,9 +400,10 @@ class ProductTemplate(models.Model):
if with_image:
data['image_url'] = '/web/image/product.template/%s/image_128' % data['id']
if with_category and product.public_categ_ids:
- data['category'] = _('Category: %s', product.public_categ_ids.name)
- slugs = [slug(category) for category in product.public_categ_ids]
- data['category_url'] = '/shop/category/%s' % ','.join(slugs)
+ data['category'] = self.env['ir.ui.view'].sudo()._render_template(
+ "website_sale.product_category_extra_link",
+ {'categories': product.public_categ_ids, 'slug': slug}
+ )
return results_data
@api.model
diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml
index 9d4d7710fe3..4ed8f433ee8 100644
--- a/addons/website_sale/views/templates.xml
+++ b/addons/website_sale/views/templates.xml
@@ -1985,4 +1985,15 @@
+
+