redirects work for create and edit

This commit is contained in:
Felix Ivo
2025-06-27 10:29:34 +02:00
parent 1a5a069844
commit 5a63cc66c5
4 changed files with 5 additions and 30 deletions

View File

@@ -52,7 +52,6 @@ class NotesController
$_POST['content'],
$_SESSION['user_id']
);
exit();
if ($note) {
// Redirect to show notes page after successful creation
@@ -91,6 +90,6 @@ class NotesController
{
$noteId = $_GET['id'];
$this->notesModel->deleteNote($noteId, $_SESSION['user_id']);
header("Location: ?controller=Notes&page=showNotes");
header("Location: ?controller=Notes&page=showNotes&do=showNotes");
}
}