mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 11:16:12 +02:00
Correctly redirect to the new page after a copy
This commit is contained in:
@@ -912,7 +912,7 @@ class AdminController
|
||||
|
||||
// Enqueue message and redirect to new location.
|
||||
$this->admin->setMessage('Successfully copied', 'info');
|
||||
$this->setRedirect($this->view . '/' . $page->route());
|
||||
$this->setRedirect($this->view . '/' . $parent->route() . '/'. $page->slug());
|
||||
|
||||
} catch (\Exception $e) {
|
||||
throw new \RuntimeException('Copying page failed on error: ' . $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user