1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Started refactor of URL system to better extend Laravel

This commit is contained in:
Dan Brown
2019-07-21 21:32:08 +01:00
parent 1e7df28238
commit 30da105812
4 changed files with 66 additions and 3 deletions

View File

@@ -112,6 +112,7 @@ function setting($key = null, $default = false)
*/
function baseUrl($path, $forceAppDomain = false)
{
return url($path);
$isFullUrl = strpos($path, 'http') === 0;
if ($isFullUrl && !$forceAppDomain) {
return $path;