A client has asked you to include category url keys in product URLs.
How is this done?
A. Create an observer for controller_action_postdispatch_catalog_product_view
B. This is not possible because products can belong to multiple categories
C. Set the configuration value of catalog/seo/product_use_categories to Yes
D. Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite
A client has asked you to include category url keys in product URLs. How is this done?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A client has asked you to include category url keys in product URLs. How is this done?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!