How can I successfully redirect a collection to a page?

Hello,

I’m trying to create a redirect from a collection to a page. It seemed to work for a day but for some reason the next day it doesn’t. It may be very simple but I’m very beginner so any help would be greatly appreciated!

This is what I have:

{% if collection.title contains ‘catering’ %}

{% endif %}

Thanks in advance!

Audrey

Hi @AudreyT ,

Please send your site and if your site is password protected, please send me the password. I will check it.

Hello @LitExtension ,

Thanks so much for your reply. Greatly appreciated.

This is the site: https://the-fierce-fuel.myshopify.com/
Password: ahbahn

The collection appears in the collection list and in the homepage. So I’ve added the same but instead starting with: {% if card_collection.title contains ‘catering’ %}

Hi @AudreyT ,

Please change code:

{% if collection.title contains 'catering' %}

=>

{% if collection.handle contains 'catering' %}

Hope it helps!

1 Like

It does! Works perfectly! Thanks for taking the time. Truly appreciate it!

1 Like