Log in
Model

CmsPageUrlPathGenerator

Magento\CmsUrlRewrite\Model\CmsPageUrlPathGenerator

What it does

This class generates URL paths and keys for CMS pages in Magento 2.

Developers use it when creating or updating CMS pages to ensure proper URL formatting, transliteration, and canonical URL generation.

It handles converting page identifiers and titles into SEO-friendly URL strings that can be used in URL rewrites.

Public Methods

  • getUrlPath()
  • getCanonicalUrlPath()
  • generateUrlKey()