jqh 5 years ago
parent
commit
c3f7609902
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Support/Helper.php

+ 1 - 1
src/Support/Helper.php

@@ -179,7 +179,7 @@ class Helper
 
         Arr::forget($query, $keys);
 
-        $baseUrl = "{$urlInfo['scheme']}://{$urlInfo['host']}{$urlInfo['path']}";
+        $baseUrl = explode('?', $url)[0];
 
         return $query
             ? $baseUrl.'?'.http_build_query($query)