Issue with Duplicate Collections Page (Please help!)

New Member
3 0 0

Hi, the following line of code...

{% if template == 'collection' %}{% if collection.handle %}{% else %}
<meta name="robots" content="noindex,follow"/>
{% endif %}{% endif %}

I am trying to noindex pages like and keep pages like The reason is they are the same, but I want to stick with a clean URL. Looks like the first were auto generated...and those are the ones being indexed! Will the code above work or do I need to tweak it?

Thank you!