diff --git a/framework/core/src/Install/Actions/InstallAction.php b/framework/core/src/Install/Actions/InstallAction.php index 0c0169a76..982dcc3fe 100644 --- a/framework/core/src/Install/Actions/InstallAction.php +++ b/framework/core/src/Install/Actions/InstallAction.php @@ -72,7 +72,7 @@ class InstallAction extends Action $baseUrl = rtrim((string) $request->getAttribute('originalUri'), '/'); $data->setSetting('admin_url', $baseUrl . '/admin'); - $data->setSetting('api_url', $baseUrl . '/api'); + $data->setSetting('api_url', $baseUrl . '/api.php'); $data->setSetting('base_url', $baseUrl); $data->setSetting('forum_title', array_get($input, 'forumTitle')); $data->setSetting('mail_from', 'noreply@' . preg_replace('/^www\./i', '', parse_url($baseUrl, PHP_URL_HOST))); diff --git a/framework/core/src/Install/Console/DataFromUser.php b/framework/core/src/Install/Console/DataFromUser.php index 51ab38cf3..d9d149f2d 100644 --- a/framework/core/src/Install/Console/DataFromUser.php +++ b/framework/core/src/Install/Console/DataFromUser.php @@ -63,7 +63,7 @@ class DataFromUser implements ProvidesData 'allow_post_editing' => 'reply', 'allow_renaming' => '10', 'allow_sign_up' => '1', - 'api_url' => $baseUrl . '/api', + 'api_url' => $baseUrl . '/api.php', 'base_url' => $baseUrl, 'custom_less' => '', 'default_locale' => 'en', diff --git a/framework/core/src/Install/Console/DefaultData.php b/framework/core/src/Install/Console/DefaultData.php index c1708cf68..eb0a9ae1a 100644 --- a/framework/core/src/Install/Console/DefaultData.php +++ b/framework/core/src/Install/Console/DefaultData.php @@ -32,7 +32,7 @@ class DefaultData implements ProvidesData 'allow_post_editing' => 'reply', 'allow_renaming' => '10', 'allow_sign_up' => '1', - 'api_url' => 'http://flarum.dev/api', + 'api_url' => 'http://flarum.dev/api.php', 'base_url' => 'http://flarum.dev', 'custom_less' => '', 'default_locale' => 'en',