Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Magento Exam Magento-2-Certified-Associate-Developer Topic 1 Question 58 Discussion

Actual exam question for Magento's Magento-2-Certified-Associate-Developer exam
Question #: 58
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?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Silva
7 months ago
I'm not sure, but I think B could be a potential answer since products can belong to multiple categories.
upvoted 0 times
...
Dalene
7 months ago
I disagree, I believe the correct answer is A, by creating an observer for controller_action_postdispatch_catalog_product_view.
upvoted 0 times
...
Bernadine
7 months ago
I think the answer is C, because we just need to set the configuration value to Yes.
upvoted 0 times
...
Salena
8 months ago
I'm not sure, but I think B) This is not possible because products can belong to multiple categories might be a valid option.
upvoted 0 times
...
Maybelle
9 months ago
I disagree, I believe the correct answer is A) Create an observer for controller_action_postdispatch_catalog_product_view.
upvoted 0 times
...
Layla
9 months ago
I think the answer is C) Set the configuration value of catalog/seo/product_use_categories to Yes.
upvoted 0 times
...
Jettie
10 months ago
Option A sounds like a lot of work. Why would I want to create an observer just for this? That seems like overkill to me.
upvoted 0 times
...
Mariko
10 months ago
Hmm, I'm not sure about these options. Isn't there a simpler way to do this, maybe using a plugin or something? I feel like I'm missing something here.
upvoted 0 times
...
Julieta
10 months ago
I'm leaning towards option D. Creating an after plugin on the UrlRewrite controller seems like a more flexible approach. That way, we can customize the URL generation as needed.
upvoted 0 times
...
Renay
10 months ago
Option C seems like the most straightforward solution. If we set the configuration value, Magento should handle the rest, right? That's the easiest way to go about it.
upvoted 0 times
...
Jade
10 months ago
I think option B is correct. It's not possible to include category URLs in product URLs because products can belong to multiple categories. That would just create a mess.
upvoted 0 times
...
Nickolas
10 months ago
This is a tricky question. I'm not sure if including category URLs in product URLs is really necessary, since products can belong to multiple categories.
upvoted 0 times
Josefa
8 months ago
I'm not sure about the answer, but I don't think it's A) Create an observer for controller_action_postdispatch_catalog_product_view
upvoted 0 times
...
Anglea
9 months ago
I believe you are mistaken. The correct answer is D) Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite
upvoted 0 times
...
Whitley
9 months ago
I think the correct answer is C) Set the configuration value of catalog/seo/product_use_categories to Yes
upvoted 0 times
...
...

Save Cancel