Canonical final class
Minn\Front\Canonical · public/minn/src/Minn/Front/Canonical.php · 28 lines
Where a URL should redirect to, by the engine's own resolution: the canonical form of a request (trailing slash, `?p=` to permalink, doubled slashes, former slugs). The front controller applies this before any plugin runs; the `redirect_canonical()` facade asks it again for a URL a plugin names.
Public
| static | location(Minn\Db $db, Minn\Http\Request $current, ?string $url): ?string# | The canonical URL of a request, or null when it already is one. |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | requestFor(string $url, Minn\Http\Request $current): Minn\Http\Request# |
Nothing matches.