adobe / storefront-product-listing-page

MIT License
14 stars 32 forks source link

Support urlKey in route #6

Closed herzog31 closed 9 months ago

herzog31 commented 9 months ago

Expected Behaviour

Pass a product's urlKey to the route function which returns the product page URL for a product.

const storeDetails = {
  route: ({ sku, urlKey }) => `/products/${urlKey}/${sku}`,
};

Actual Behaviour

Currently only the product sku is passed.