Skip to content

Commit

Permalink
Use product url (including combination) rather than canonical one in …
Browse files Browse the repository at this point in the history
…the miniatures
  • Loading branch information
jolelievre committed Oct 16, 2019
1 parent 57251f7 commit 2d95ffd
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -27,15 +27,15 @@
<div class="thumbnail-container">
{block name='product_thumbnail'}
{if $product.cover}
<a href="{$product.canonical_url}" class="thumbnail product-thumbnail">
<a href="{$product.url}" class="thumbnail product-thumbnail">
<img
src="{$product.cover.bySize.home_default.url}"
alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}"
data-full-size-image-url="{$product.cover.large.url}"
/>
</a>
{else}
<a href="{$product.canonical_url}" class="thumbnail product-thumbnail">
<a href="{$product.url}" class="thumbnail product-thumbnail">
<img src="{$urls.no_picture_image.bySize.home_default.url}" />
</a>
{/if}
Expand All @@ -44,9 +44,9 @@
<div class="product-description">
{block name='product_name'}
{if $page.page_name == 'index'}
<h3 class="h3 product-title" itemprop="name"><a href="{$product.canonical_url}">{$product.name|truncate:30:'...'}</a></h3>
<h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h3>
{else}
<h2 class="h3 product-title" itemprop="name"><a href="{$product.canonical_url}">{$product.name|truncate:30:'...'}</a></h2>
<h2 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h2>
{/if}
{/block}

Expand Down

0 comments on commit 2d95ffd

Please sign in to comment.