Application Framework Reference

Controller API

strip_url()

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.

Synopsis

url = strip_url( path )

Parameters

path

String

URL to be stripped.

Return Value

String

The path URL with the root endpoint and i18n prefixes stripped.

See Also

make_url()