Correctly redirect to the new page after a copy

This commit is contained in:
Flavio Copes
2015-08-03 16:49:27 +02:00
parent 9f0c30b498
commit 319b7a3963

View File

@@ -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());