We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9866b6e + 3e6858c commit de2c155Copy full SHA for de2c155
src/EventSubscriber/Redirect.php
@@ -9,6 +9,7 @@
9
use Bolt\Log\LoggerTrait;
10
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
11
use Symfony\Component\HttpFoundation\RedirectResponse;
12
+use Symfony\Component\HttpKernel\Exception\HttpException;
13
use Tightenco\Collect\Support\Collection;
14
15
class Redirect implements EventSubscriberInterface
@@ -47,6 +48,7 @@ public function redirect(): void
47
48
$response = $this->getRedirectResponse($this->feedback->get('redirect'));
49
50
$response->send();
51
+ return;
52
}
53
54
throw new HttpException(Response::HTTP_FOUND, '', null, []);
0 commit comments