diff --git a/features/standard/Languages.feature b/features/standard/Languages.feature index 0cc2ea4b3d..df94e303b9 100644 --- a/features/standard/Languages.feature +++ b/features/standard/Languages.feature @@ -27,10 +27,8 @@ Feature: Languages management | Name | Deutsch | | Language code | de-DE | And I perform the "Save and close" action - Then I should be on "Deutsch" Language page - And Language has proper attributes - | Name | Language code | Enabled | - | Deutsch | de-DE | true | + Then I should be on "Languages" page + And there's a "Deutsch" Language on Languages list @javascript Scenario: New Language with existing language code cannot be added diff --git a/src/bundle/Controller/LanguageController.php b/src/bundle/Controller/LanguageController.php index 730f1fd886..89749f1950 100644 --- a/src/bundle/Controller/LanguageController.php +++ b/src/bundle/Controller/LanguageController.php @@ -224,9 +224,7 @@ public function createAction(Request $request): Response ]); } - return new RedirectResponse($this->generateUrl('ibexa.language.view', [ - 'languageId' => $language->id, - ])); + return $this->redirectToRoute('ibexa.language.list'); }); if ($result instanceof Response) {