X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ddb7f33868ea499ab8f48a7062f145e8c0fbe02f..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(); } }