X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/078e8e7dc3ee80ac57474a9185bba2b460a740f0..refs/pull/3630/head:/app/Http/Controllers/SettingController.php diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php index 598058ef4..f5e48ca4c 100644 --- a/app/Http/Controllers/SettingController.php +++ b/app/Http/Controllers/SettingController.php @@ -19,9 +19,17 @@ class SettingController extends Controller } /** - * Display a listing of the settings. + * Handle requests to the settings index path. */ - public function index(string $category) + public function index() + { + return redirect('/settings/features'); + } + + /** + * Display the settings for the given category. + */ + public function category(string $category) { $this->ensureCategoryExists($category); $this->checkPermission('settings-manage'); @@ -75,7 +83,7 @@ class SettingController extends Controller $this->logActivity(ActivityType::SETTINGS_UPDATE, $category); $this->showSuccessNotification(trans('settings.settings_save_success')); - return redirect("/settings/${category}"); + return redirect("/settings/{$category}"); } protected function ensureCategoryExists(string $category): void