How can I obtain a featured collection URL in the minimal template?

Hi,

I want to make a small modification for the minimal template in the featured-collection.liquid file.

Right after the title of the section < h2 class=“section-header__title” > I want to add a custom link that allows to reach the related collection page.

However I can’t find the way to dynamically get the URL of the related collection to feed the href attribute of my link. I tried {{ collection.url }} but it doesn’t work.

Any idea on how to proceed ?

Regards,

Hello Zuhm,

Instead of using {{ collection.url }} in the featured-collection.liquid, please use {{ collections[featured].url }}

So the code will be something like this:

 Custom link text 

Hope that will work for you,

Best regards,

Diamond team