From 1a56498bc6969528f3482e66af23a17fcdb2f47f Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 14 Aug 2015 12:50:00 +0930 Subject: [PATCH] Automatically derive base_path from base_url --- framework/core/src/Api/Serializers/ForumSerializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Api/Serializers/ForumSerializer.php b/framework/core/src/Api/Serializers/ForumSerializer.php index 567f97f38..e49cbfee3 100644 --- a/framework/core/src/Api/Serializers/ForumSerializer.php +++ b/framework/core/src/Api/Serializers/ForumSerializer.php @@ -25,7 +25,7 @@ class ForumSerializer extends Serializer $attributes = [ 'title' => Core::config('forum_title'), 'baseUrl' => Core::config('base_url'), - 'basePath' => Core::config('base_path'), + 'basePath' => parse_url(Core::config('base_url'), PHP_URL_PATH) ?: '', 'apiUrl' => Core::config('api_url'), 'welcomeTitle' => Core::config('welcome_title'), 'welcomeMessage' => Core::config('welcome_message'),