Skip to content
Snippets Groups Projects
Commit db385292 authored by Pieter Frenssen's avatar Pieter Frenssen :paperclips:
Browse files

ISAICP-2169: Go to the entity view page after editing a collection.

Ref. https://github.com/hechoendrupal/DrupalConsole/pull/1749
parent 8f49563e
No related branches found
Tags D8Sprint1
No related merge requests found
......@@ -36,7 +36,8 @@ public function save(array $form, FormStateInterface $form_state) {
'%label' => $entity->label(),
]));
}
$form_state->setRedirect('entity.collection.edit_form', ['collection' => $entity->id()]);
$form_state->setRedirect('entity.collection.canonical', ['collection' => $entity->id()]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment