diff --git a/application/controllers/NavigationController.php b/application/controllers/NavigationController.php index 335b05adc..2519647b2 100644 --- a/application/controllers/NavigationController.php +++ b/application/controllers/NavigationController.php @@ -188,9 +188,10 @@ class NavigationController extends Controller public function editAction() { $itemName = $this->params->getRequired('name'); + $referrer = $this->params->get('referrer', 'index'); $form = new NavigationConfigForm(); - $form->setRedirectUrl('navigation'); + $form->setRedirectUrl($referrer === 'shared' ? 'navigation/shared' : 'navigation'); $form->setItemTypes($this->listItemTypes()); $form->setTitle(sprintf($this->translate('Edit Navigation Item %s'), $itemName)); $form->setUser($this->Auth()->getUser()); diff --git a/application/views/scripts/navigation/shared.phtml b/application/views/scripts/navigation/shared.phtml index 7f148e3e3..939249f84 100644 --- a/application/views/scripts/navigation/shared.phtml +++ b/application/views/scripts/navigation/shared.phtml @@ -24,7 +24,10 @@