|
|
@@ -937,7 +937,7 @@ if (!function_exists('get_web_url')) {
|
|
|
function get_web_url($url)
|
|
|
{
|
|
|
$host = request()->header('HOST');
|
|
|
- $host = ((strpos($host, '127') === false) && strpos($host, 'localhost') === false) ? env('WEB_URL') : 'http://' . $host;
|
|
|
+ $host = ((strpos($host, '127') === false) && strpos($host, 'localhost') === false) ? trim(env('WEB_URL'),'/') : 'http://' . $host;
|
|
|
return strpos($url, 'http') === false ? $host . '/' . ltrim($url, '/') : $url;
|
|
|
}
|
|
|
}
|