X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e91ef54cc9f8ce6b264bced8191275b6a33e594f..refs/pull/3598/head:/app/Http/Request.php diff --git a/app/Http/Request.php b/app/Http/Request.php index 183686f67..4cbdf34ba 100644 --- a/app/Http/Request.php +++ b/app/Http/Request.php @@ -1,25 +1,45 @@ -getScheme().'://'.$this->getHttpHost(); + return empty($parsedBaseUrl) ? '' : ('/' . $parsedBaseUrl); } - return $base; + return parent::getBaseUrl(); } }