Log in
Model

CategoryProductUrlPathGenerator

Magento\CatalogUrlRewrite\Model\CategoryProductUrlPathGenerator

What it does

This class generates URL rewrites for products based on their category assignments.

Developers use this when products need SEO-friendly URLs that include their category paths, such as '/electronics/phones/smartphone.html'.

It handles both global scope and store-specific URL generation, skipping products that aren't individually visible.

Public Methods

  • generate()