Created
March 5, 2019 10:26
-
-
Save Keey/2b7008ad6a4c7bf6566ca6510b8e6f5e to your computer and use it in GitHub Desktop.
canonical_url shopify collection, pagination and product
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if collection.url == '/collections/all-products' %} | |
<link rel="canonical" href="{{ canonical_url | split: "all-products?page=" | first }}" /> | |
{%else %} | |
<link rel="canonical" href="{{ canonical_url | split: "?page=", | first }}" /> | |
{% endif %} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment