From 71ecc24d19d6bd07b4d099a70273a3be30cc0a47 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 13 Jan 2023 08:37:20 +0800 Subject: [PATCH] feat(web/problems): redirect to edit page after create problem --- web/app/controllers/problem_set.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php index 0edda88..47623eb 100644 --- a/web/app/controllers/problem_set.php +++ b/web/app/controllers/problem_set.php @@ -73,6 +73,9 @@ EOD; ]) ]); dataNewProblem($id); + + redirectTo("/problem/{$id}/manage/statement"); + die(); }; $new_problem_form->submit_button_config['align'] = 'right'; $new_problem_form->submit_button_config['class_str'] = 'btn btn-primary';