From db3852929c7db749f10531378ccee78646611c99 Mon Sep 17 00:00:00 2001 From: Pieter Frenssen <pieter@frenssen.be> Date: Mon, 18 Jan 2016 19:39:40 +0200 Subject: [PATCH] ISAICP-2169: Go to the entity view page after editing a collection. Ref. https://github.com/hechoendrupal/DrupalConsole/pull/1749 --- web/modules/custom/collection/src/Form/CollectionForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/modules/custom/collection/src/Form/CollectionForm.php b/web/modules/custom/collection/src/Form/CollectionForm.php index 9537e9b8e4..cfb3b5e719 100644 --- a/web/modules/custom/collection/src/Form/CollectionForm.php +++ b/web/modules/custom/collection/src/Form/CollectionForm.php @@ -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()]); } } -- GitLab