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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Magento 2 Certified Associate Developer topic 1 question 21 discussion

Actual exam question from Magento's Magento 2 Certified Associate Developer
Question #: 21
Topic #: 1
[All Magento 2 Certified Associate Developer Questions]

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 🗳️
Reference:
https://magento.stackexchange.com/questions/123553/how-to-add-the-sku-to-the-url-key-magento-2/250339

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Rizwan407
9 months, 3 weeks ago
Correct Answer is C. Set the configuration value of catalog/seo/product_use_categories to Yes
upvoted 1 times
...
mr_acronym
2 years, 4 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 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
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.

SaveCancel
Loading ...