mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Derive base URL from the original URI
This commit is contained in:
parent
0d3b578ea3
commit
624e4076a5
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue
Block a user