diff --git a/TODO.md b/TODO.md index 55937c4..97b907a 100644 --- a/TODO.md +++ b/TODO.md @@ -104,6 +104,7 @@ # Current tasks +- [x] Edit submit redirects to recapitulatif instead of staying on edit.php - [x] Mandatory auto-generated passwords on share links (no custom passwords, regenerate-only in edit, rate limit on password gate) - [x] .gitignore / .ignore: exclude *.db-wal and *.db-shm - [x] CSS: FilePond pool file block border yellow → green on upload complete diff --git a/app/public/admin/actions/edit.php b/app/public/admin/actions/edit.php index 13dba01..5de4fce 100644 --- a/app/public/admin/actions/edit.php +++ b/app/public/admin/actions/edit.php @@ -45,7 +45,7 @@ try { AdminLogger::make()->logEdit($thesisId, $_POST['titre'] ?? $_POST['title'] ?? ''); App::flash('success', "TFE mis à jour avec succès!"); - header('Location: ../edit.php?id=' . $thesisId); + header('Location: ../recapitulatif.php?id=' . $thesisId); exit(); } catch (Exception $e) { @@ -58,6 +58,6 @@ try { App::flashAutofocus($autofocusField); } - header('Location: ../edit.php?id=' . $thesisId); + header('Location: ../recapitulatif.php?id=' . $thesisId); exit(); }