Magento seems to have several different formats that work for product URLs, including:
/catalog/product/view/id/123/s/my-product-slug/ /my-product-slug/ /top-category/sub-category/my-product-slug/ etc...
I just want to use one of them, always the third one, to concatenate all the ingots of the parent categories together before launching the product. Is there a way to configure Magento to use only one of these formats?
Using methods like getProductUrl() seems to produce different results depending on which page / context you are on, can someone tell me why this is?
In general, does anyone know of any docs or blog posts, etc. that can help me understand that routing in Magento is a little better?
Thanks!
url php magento
Chris forrette
source share