0

I am preparing to get Magento certified, doing some test questions I have found this:

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

The answer marked as correct is D but I think the correct answer is C.

Can someone give me their opinion on this?

Thanks in advance.

1 Answer 1

2

C is the correct answer, sometimes you can see an incorrect answer when taking the Online sample test.

2
  • I thought so but wanted to make sure. Thank you very much.
    – Noty
    Commented Oct 25, 2022 at 8:27
  • You're welcome. Cheers!
    – Tu Van
    Commented Oct 25, 2022 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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