Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Exam Magento 2 Certified Associate Developer topic 1 question 21 discussion

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
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️


Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
8 months ago
This can be managed in configuration, and does not require custom code. https://docs.magento.com/user-guide/catalog/catalog-urls.html
upvoted 1 times
Community vote distribution
A (35%)
C (25%)
B (20%)
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

Loading ...