Skip to content

Commit

Permalink
Merge pull request #5179 from neos/bugfix/set-response-code
Browse files Browse the repository at this point in the history
BUGFIX: Forward status codes and headers set in module actions
  • Loading branch information
bwaidelich authored Jul 12, 2024
2 parents 17ffd7c + 1c7ce04 commit 8162fb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Neos.Neos/Classes/Controller/Backend/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public function indexAction(array $module)
$moduleResponse = new ActionResponse();

$this->dispatcher->dispatch($moduleRequest, $moduleResponse);
$moduleResponse->mergeIntoParentResponse($this->response);

if ($moduleResponse->getRedirectUri() !== null) {
$this->redirectToUri($moduleResponse->getRedirectUri(), 0, $moduleResponse->getStatusCode());
Expand Down

0 comments on commit 8162fb3

Please sign in to comment.