Skip to content

Commit

Permalink
[BUGFIX] Apply ExtbaseActionsWithRedirectMustReturnResponseInterfaceR…
Browse files Browse the repository at this point in the history
…ector (#2581)
  • Loading branch information
simonschaufi authored Nov 26, 2024
1 parent 6138efb commit 35fd445
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Controller/NewsBaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ protected function handleNoNewsFoundError(string $configuration): ?ResponseInter

switch ($options[0]) {
case 'redirectToListView':
$this->redirect('list');
break;
return $this->redirect('list');
case 'redirectToPage':
if (count($options) === 1 || count($options) > 3) {
$msg = sprintf(
Expand Down

0 comments on commit 35fd445

Please sign in to comment.