Before: href="{{ product.url }}" 

After: href="{{ product.url | split: "?" | first }}"