Skip to content

Commit

Permalink
[BUGFIX] Fix crash with redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
twoldanski authored and lukaszuznanski committed Dec 13, 2023
1 parent 2a7a694 commit 426e3fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Middleware/RedirectHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ public function __construct(
ResponseFactoryInterface $responseFactory,
LoggerInterface $logger,
HeadlessFrontendUrlInterface $urlUtility,
HeadlessMode $headlessMode
) {
parent::__construct($redirectService, $eventDispatcher, $responseFactory, $logger);
$this->urlUtility = $urlUtility;
$this->headlessMode = $headlessMode;
}

/**
Expand Down
1 change: 1 addition & 0 deletions Configuration/RequestMiddlewares.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'headless/mode-setter' => [
'before' => [
'typo3/cms-frontend/base-redirect-resolver',
'headless/cms-redirects/redirecthandler',
],
'target' => HeadlessModeSetter::class,
],
Expand Down

0 comments on commit 426e3fe

Please sign in to comment.