Log in
Model

TargetUrlBuilder

Magento\CmsUrlRewrite\Model\Page\TargetUrlBuilder

What it does

This class builds the correct target URL for CMS pages when handling URL rewrites across different store views.

Developers use it when they need to generate proper frontend URLs for CMS pages, ensuring the correct store context and handling cases where URL rewrites may differ between stores or when canonical paths are needed.

Public Methods

  • process()