How is this done?


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

Answer: D

Explanation:

Reference: https://magento.stackexchange.com/questions/123553/how-to-add-the-sku-to-the-url-key­magento-2/250339

Leave a Reply

Your email address will not be published.