Trait Canonical
Direct Known Users
MvcCore\Ext\Routers\Module, MvcCore\Ext\Routers\ModuleLocalization, MvcCore\Ext\Routers\ModuleMedia, MvcCore\Ext\Routers\ModuleMediaAndLocalizationLocated at ext-router-module/src/MvcCore/Ext/Routers/Module/Canonical.php
protected
boolean
|
#
canonicalRedirectQueryStringStrategy( )
If request is routed by query string strategy, check if request controller or request action is the same as default values. Then redirect to shorter canonical URL. Check also if there is routed/defined any module domain route and if there is any, try to complete base URL domain part and also compare this part with requested URL part. If there is difference, redirect to shorter URL version. |
protected
boolean
|
#
canonicalRedirectRewriteRoutesStrategy( )
If request is routed by rewrite routes strategy, try to complete canonical URL by current route. Then compare completed base URL part with requested base URL part or completed path and query part with requested path and query part. Check also if there is routed/defined any module domain route and if there is any, try to complete base URL domain part and also compare this part with requested URL part. If first URL part or second URL part is different, redirect to canonical shorter URL. |