diff --git a/pandora_console/godmode/setup/os.list.php b/pandora_console/godmode/setup/os.list.php index 2c722aade0..5ec791baca 100644 --- a/pandora_console/godmode/setup/os.list.php +++ b/pandora_console/godmode/setup/os.list.php @@ -219,7 +219,9 @@ echo ''; $('#aux').text(''); } else { $('#aux').dialog('close'); - location.reload(); + let url = new URL(window.location.href); + url.searchParams.set('message', r.url_message) + window.location.href = url.href; } }, error: function(e) { diff --git a/pandora_console/include/ajax/os.php b/pandora_console/include/ajax/os.php index 058fe75578..5879a00158 100644 --- a/pandora_console/include/ajax/os.php +++ b/pandora_console/include/ajax/os.php @@ -60,7 +60,12 @@ if ($method === 'deleteOS') { ) { echo json_encode(['deleted' => false]); } else { - echo json_encode(['deleted' => true]); + echo json_encode( + [ + 'deleted' => true, + 'url_message' => 6, + ] + ); } }