X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/891dbfe0853775c27039587bedf3bded9964d2f1..refs/pull/3364/head:/app/Http/Request.php diff --git a/app/Http/Request.php b/app/Http/Request.php index 183686f67..13892603d 100644 --- a/app/Http/Request.php +++ b/app/Http/Request.php @@ -1,25 +1,43 @@ -getScheme().'://'.$this->getHttpHost(); + if ($appUrl) { + return '/' . rtrim(implode('/', array_slice(explode('/', $appUrl), 3)), '/'); } - return $base; + return parent::getBaseUrl(); } }