diff --git a/bl-kernel/admin/controllers/content.php b/bl-kernel/admin/controllers/content.php index d59ddf78..c6b90d2a 100644 --- a/bl-kernel/admin/controllers/content.php +++ b/bl-kernel/admin/controllers/content.php @@ -64,7 +64,7 @@ if (checkRole(array('author'), false)) { // Check if out of range the pageNumber if (empty($published) && $url->pageNumber()>1) { - Redirect::page('content'); + Redirect::page('content/'.$contentTypeKey); } // Title of the page diff --git a/bl-kernel/admin/controllers/edit-content.php b/bl-kernel/admin/controllers/edit-content.php index 5077fbcb..d9612c7b 100644 --- a/bl-kernel/admin/controllers/edit-content.php +++ b/bl-kernel/admin/controllers/edit-content.php @@ -56,6 +56,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_POST['state']==='delete') { if (deletePage($_POST['key'])) { Alert::set( $L->g('The changes have been saved') ); + Redirect::page('content/'.$contentTypeKey); } } else { $key = editPage($_POST); diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index d13c74fa..468b2e91 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -88,7 +88,7 @@ function table($type) { echo ''.$L->g('View').''.PHP_EOL; echo ''.$L->g('Edit').''.PHP_EOL; if (count($page->children())==0) { - echo ''.$L->g('Delete').''.PHP_EOL; + echo ''.$L->g('Delete').''.PHP_EOL; } echo ''; @@ -118,7 +118,7 @@ function table($type) { echo ''.$L->g('View').''.PHP_EOL; } echo ''.$L->g('Edit').''.PHP_EOL; - echo ''.$L->g('Delete').''.PHP_EOL; + echo ''.$L->g('Delete').''.PHP_EOL; echo ''; echo ''; @@ -289,7 +289,7 @@ $(document).ready(function() { 'value': key }).append(jQuery('', { 'type': 'hidden', - 'name': 'type', + 'name': 'state', 'value': 'delete' }))));