Derive base URL from the original URI

This commit is contained in:
Toby Zerner 2015-08-17 14:57:12 +09:30
parent 0d3b578ea3
commit 624e4076a5

View File

@ -59,7 +59,7 @@ class InstallAction extends Action
'email' => array_get($input, 'adminEmail'),
]);
$baseUrl = rtrim((string) $request->getUri(), '/');
$baseUrl = rtrim((string) $request->getAttribute('originalUri'), '/');
$data->setSetting('admin_url', $baseUrl . '/admin');
$data->setSetting('api_url', $baseUrl . '/api');