diff --git a/EventListener/AlertifyListener.php b/EventListener/AlertifyListener.php
index <HASH>..<HASH> 100644
--- a/EventListener/AlertifyListener.php
+++ b/EventListener/AlertifyListener.php
@@ -12,6 +12,7 @@
 namespace Troopers\AlertifyBundle\EventListener;
 
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
+use Symfony\Component\HttpFoundation\RedirectResponse;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\HttpFoundation\Session\Session;
@@ -57,6 +58,10 @@ class AlertifyListener implements EventSubscriberInterface
      */
     protected function injectAlertify(Response $response, Request $request)
     {
+        if ($response instanceof RedirectResponse) {
+            return;
+        }
+
         $content = $response->getContent();
         $pos = strripos($content, '</body>');
Don't inject Alertify in case of RedirectResponse