Scopes a product URL to a collection for collection-aware navigation.
{{ product.url | within: collection }}
Output:
/collections/candles/products/sandalwood-candle