I am using the products API (
rest/V1/products/:sku) and getting back an id for a product.
I'd like to use that to build a URL to the product page - something like
What is the correct URL?
Note: Direct link to a category works properly:
One of the
custom_attributes returned by the products API is
url_key, but I can't seem to get that to work either:
 => stdClass Object
[attribute_code] => url_key
[value] => zoltan-gym-tee-l-blue
http://my-store.com/zoltan-gym-tee-l-blue doesn't work (with or without .html suffix).
I wonder if this is a bug in the products API, because the real url key does not include attribute information - i.e., the URL
http://my-store.com/zoltan-gym-tee.html does work. (But note that this is not the URL key - the url key is "zoltan-gym-tee-l-blue".)