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 MagentoUrlRewriteControllerRouter::generateRewrite
Correct Answer : C
Answer: C
I agree with C as I can see on the configuration for this setup
This is C
php bin/magento config:set catalog/seo/product_use_categories yes