Filters the canonical redirect URL.
Description
Returning false to this filter will cancel the redirect.
Parameters
$redirect_url
string- The redirect URL.
$requested_url
string- The requested URL.
Source
$redirect_url = apply_filters( 'redirect_canonical', $redirect_url, $requested_url );
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
Prevent URLs from being encoded on the frontpage.