QuestionQ12

Design and implement optimal solutions for Adobe Commerce to meet business needs

An Adobe Commerce Architect must scope a bespoke news section for a merchant’s Adobe Commerce storefront. The merchant’s SEO agency requests the following URL structure: news/\{date\}/\{article_url_key\}, where \{date\} is the article’s publication date and \{article_url_key\} is the article URL key.

The Architect determines that a news entity type will be created. The date and URL-key data will be stored on each record and generated automatically on save. Both values can be manually overridden.

The Architect needs to manage routing for this functionality while following best practice.

Which two options should the Architect consider to meet these requirements?

Choose two
Explanation

Adobe Commerce supports persisted URL rewrites that map an SEO-friendly request path to a standard controller action, making generated per-article paths suitable for storage in the URL rewrites table. It also supports custom routers implementing RouterInterface, whose matching logic can recognize a custom URL pattern and dispatch the matching request before the standard router. Plugins on action execution and response observers operate after routing rather than providing the routing extension point, while a standard Index/Index controller does not by itself match the dynamic date and article-key path structure.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!