Looking to redirect this URL:
https://stylcase.com/collections/iphone/
To this URL:
https://stylcase.com/collections/iphone/iphone-13
But because it’s a valid URL Shopify won’t do it, anyone know a workaround?
Main issue: Redirect /collections/iphone/ to /collections/iphone/iphone-13 on a Shopify store. Shopify’s built-in URL redirects won’t apply because the source is a valid, existing collection URL.
Workaround proposed: Modify theme code to conditionally handle that collection.
Key terms:
Outcome: The original poster confirmed the solution worked.
Notes: A screenshot was provided to show where to insert the code in the template. Discussion reached resolution; no further questions were raised.
Looking to redirect this URL:
https://stylcase.com/collections/iphone/
To this URL:
https://stylcase.com/collections/iphone/iphone-13
But because it’s a valid URL Shopify won’t do it, anyone know a workaround?
Hi @styl ,
Please go to main-collection-product-grid.liquid file and add code here:
Code:
{% if collection.handle == 'iphone' and current_tags == blank %}
{% endif %}
Hope it helps!
Perfect thank you!