Fix documents => files redirect after deletion (since we merged these)

This commit is contained in:
wrongecho
2026-03-02 08:12:07 +00:00
parent 5c3ff91f21
commit 795144b288

View File

@@ -771,7 +771,7 @@ if (isset($_GET['delete_document'])) {
// If there's a "from" parameter, we can use it to decide where to go
if (isset($_GET['from']) && $_GET['from'] === 'document_details') {
// User deleted from document_details.php
redirect("documents.php?client_id=$client_id");
redirect("files.php?client_id=$client_id");
} else {
// Default behavior — redirect back to previous page
redirect();