Skip to content

URL and Slug Model

Observed URL Builders - App\Models\Legacy\RW builds URLs for categories, regions, and projects. - MGPages::getFrontendUrl() uses RW::buildMGUrl(). - Websites::getFrontendUrl() prepends protocol based on domain.

Slug and URL Fields - Locations includes Url_key and Category_for_url in logic, used by RW. - MGPages may use Url when provided, otherwise builds a default URL.

Redirects and Rewrites - CoreUrlRewrite exists as a table/model (app/Models/CoreUrlRewrite.php) but usage is not prominent in controllers. - PatternRedirects::redirectByPattern() contains hardcoded redirect rules for legacy URLs.

Implication - URL logic is primarily code-driven rather than a fully data-driven routing table.