Skip to content

Commit

Permalink
Merge pull request #32 from GFEMediaGmbH/fix-redirect-response
Browse files Browse the repository at this point in the history
FIX: redirect response isn't interpreted as JSON
  • Loading branch information
lukaszuznanski authored Nov 16, 2023
2 parents 69b77be + 3c58d8c commit 30d2f84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Finisher/RedirectFinisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function redirectToUriFinisher(): void
$redirectService = GeneralUtility::makeInstance(RedirectUriService::class, $this->contentObject);
$uri = $redirectService->getRedirectUri();
if (!empty($uri) && $this->isRedirectEnabled()) {
header('Content-Type: application/json');
echo json_encode([
'redirectUrl' => $uri,
'statusCode' => 303,
Expand Down

0 comments on commit 30d2f84

Please sign in to comment.