wesmiler 1 éve
szülő
commit
1652c6d47a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/Helpers/common.php

+ 1 - 1
app/Helpers/common.php

@@ -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;
     }
 }