Log in
Model

CategoryUrlRewriteGenerator

Magento\CatalogUrlRewrite\Model\CategoryUrlRewriteGenerator

What it does

This class generates URL rewrites for categories in Magento 2, creating SEO-friendly URLs that map to category pages.

Developers use it when categories are created, updated, or moved to automatically generate proper URL structures for both global scope and specific store views, including child category URLs and canonical URLs.

Public Methods

  • generate()