Skip to content
Snippets Groups Projects

Issue #3247189 :Option A, Saving menu causes incorrect redirect.

1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 1
2
@@ -3,7 +3,6 @@
namespace Drupal\bigmenu;
use Drupal\Core\Link;
use Drupal\Core\Url;
use Drupal\menu_ui\MenuForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Menu\MenuLinkTreeElement;
@@ -281,7 +280,7 @@ class BigMenuForm extends MenuForm {
*/
public function save(array $form, FormStateInterface $form_state) {
parent::save($form, $form_state);
$form_state->setRedirectUrl(Url::fromUserInput($this->getRedirectDestination()->get()));
$form_state->disableRedirect();
}
/**
Loading