The strip_url() method returns a specified URL without the root endpoint or i18n prefixes. Use this method to format a URL path fragment to pass to methods such as make_url(), which can safely handle the root endpoint and i18n prefixes on a per user basis.
The path parameter is a URL, and the method returns a URL with the root endpoint and i18n prefixes stripped.
url = strip_url( path )
|
path |
String |
URL to be stripped. |
|
String |
The path URL with the root endpoint and i18n prefixes stripped. |