0

Product has an attribute called url_path.

  • What is the purpose of this attribute ?
  • When does it get populated with values ?
  • When are this values used ?
0

Product attribute url_path will be a concatenation of url_key and the Product URL Suffix defined under System > Configuration > Catalog > Search Engine Optimization.

If the same url_key already exists, it will also ensure that you don't have duplicate url_path by suffixing your url_key with an hyphen and the product's entity_id.

  • I believe that will be the url_key attribute. – vitoriodachef Jun 4 '18 at 7:05
  • Oh yes, you are right! I've just updated my answer. Sorry about that. – Jonathan Ribas Jun 4 '18 at 7:12
  • Thank for your time and your answer. So i'm changing the product url key from product edit (admin). There is basically no value being populated for the url_path attribute. I can't seem to find a scenario in which the url_path attribute is populated. – vitoriodachef Jun 4 '18 at 7:21
  • Have you reindex your product URL rewrites after your edits? – Jonathan Ribas Jun 4 '18 at 7:25
  • Magento 2 does not have native product url rewrites reindex. – vitoriodachef Jun 4 '18 at 7:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.