public getNonLocalizedURL ( string | false $url = null ) : string | ||
$url | string | false | URL to clean, if false, current url would be taken |
return | string | URL with no locale in path |
public function getNonLocalizedURL($url = null)
{
return $this->getLocalizedURL(false, $url);
}
/** * It returns an URL without locale (if it has it) * Convenience function wrapping getLocalizedURL(false) * * @param string|false $url URL to clean, if false, current url would be taken * @return string URL with no locale in path * @static */ public static function getNonLocalizedURL($url = null) { return \Mcamara\LaravelLocalization\LaravelLocalization::getNonLocalizedURL($url); }