Adding collections to the URL path of products in a featured collection (Impulse Theme)?

I’ve run in a bit of an issue with my “Featured Collection” section in my Impulse theme. I’m looking to start using breadcrumbs on product pages and I noticed that the “Featured Collection” section doesn’t include the collections page and collection name in the grid item url’s, which causes the breadcrumbs to display as just “/Home”, which obviously doesn’t quite look right, especially as I have several different collections featured on the landing page.

The “featured-collection.liquid” file already has product url’s set up as “{{ product.url | within: collection }}” as seen below:

Why isn’t this particular section adding collection information to the product URL path? I’ve checked other types of grid item templates I could find from theme files aswell for good measure and they all have the same setting ( {{ product.url | within: collection }} ). When visiting products via actual collection pages, the url’s do contain the collection paths. It just seems that this one particular section type is having this issue.

This is how the url is rendered on the loaded page:

Why is the section not rendering the full URL’s? What could possibly overwrite the section template url settings?

Did you find a solution ?

If your products are only in a single Collection, then you just change:
{{ product.url | within: collection }}

To be:
{{ product.url | within: product.collections[0] }}

If your products are in multiple Collections, then this will work, but it will just pick the first Collection that the product is part of.

“[0]” is the first item of the array of Collections that this Product is a member of.

How can i set this in my theme editor on minimalin-v1-1-6 shopify theme