From 699d1aaa84872deb656df83a4bd78c113cbc416e Mon Sep 17 00:00:00 2001 From: oliver Date: Sat, 26 Mar 2016 19:15:23 +0100 Subject: [PATCH] redirect to overview instead of edit after creating a new Character title --- controllers/CharactertitlesController.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/controllers/CharactertitlesController.inc b/controllers/CharactertitlesController.inc index c39a9262..bcb36efe 100644 --- a/controllers/CharactertitlesController.inc +++ b/controllers/CharactertitlesController.inc @@ -129,8 +129,16 @@ ); $title = $this->Charactertitles->getTitleById($titleId); - // Redirect to editing - $this->redirect($this->linker->link(array('edit', $seminary['url'], $title['hash']), 1)); + // Redirect to overview + $this->redirect( + $this->linker->link( + array( + 'index', + $seminary['url'] + ), + 1 + ) + ); } }