New Member
2 0 0
when i scan for broken links, I found a lot of them, I found out that the code below is the cause
since the product link shows up as without "/products/" in url.
if i change {{ product.handle | handleize }} to {{ product.url }}, no more broken links, but wishlist functions won't work any more. what can i do?
<div class="add-to-wishlist">     
  <div class="default-wishbutton-{{ product.handle }} loading"><a class="add-in-wishlist-js " href="{{ product.handle | handleize }}"><i class="fa fa-heart-o"></i><span class="tooltip-label">{{ 'general.wishlist.add_to_wishlist' | t }}</span></a></div>
  <div class="loadding-wishbutton-{{ product.handle }} loading" style="display: none; pointer-events: none"><a class="add_to_wishlist" href="{{ product.handle | handleize }}"><i class="fa fa-circle-o-notch fa-spin"></i></a></div>
  <div class="added-wishbutton-{{ product.handle }} loading" style="display: none;"><a class="added-wishlist  add_to_wishlist" href="/pages/wishlist"><i class="fa fa-heart"></i><span class="tooltip-label">{{ 'general.wishlist.view_wishlist' | t }}</span></a></div>