diff --git a/modules/negotiate/lib/Auth/Source/Negotiate.php b/modules/negotiate/lib/Auth/Source/Negotiate.php
index 21601452f408a68ff26b1f973dda20cbbf3141e6..bba08d6bbd2aff1b6fee9cbb47dfbd08e29c5b63 100644
--- a/modules/negotiate/lib/Auth/Source/Negotiate.php
+++ b/modules/negotiate/lib/Auth/Source/Negotiate.php
@@ -49,7 +49,6 @@ class Negotiate extends \SimpleSAML\Auth\Source
         if (!extension_loaded('krb5')) {
             throw new \Exception('KRB5 Extension not installed');
         }
-
         // call the parent constructor first, as required by the interface
         parent::__construct($info, $config);
 
@@ -242,15 +241,13 @@ class Negotiate extends \SimpleSAML\Auth\Source
         $config = \SimpleSAML\Configuration::getInstance();
 
         $url = htmlspecialchars(\SimpleSAML\Module::getModuleURL('negotiate/backend.php', $params));
-        $json_url = json_encode($url);
 
         header('HTTP/1.1 401 Unauthorized');
         header('WWW-Authenticate: Negotiate', false);
 
-        $t = new \SimpleSAML\XHTML\Template($config, 'negotiate:redirect.twig');
+        $t = new \SimpleSAML\XHTML\Template($config, 'negotiate:redirect.php');
         $t->data['baseurlpath'] = \SimpleSAML\Module::getModuleURL('negotiate');
         $t->data['url'] = $url;
-        $t->data['json_url'] = $json_url;
         $t->show();
     }
 
diff --git a/modules/negotiate/templates/redirect.php b/modules/negotiate/templates/redirect.php
new file mode 100644
index 0000000000000000000000000000000000000000..7d7f07c213032e71ad95db52a45817304d471212
--- /dev/null
+++ b/modules/negotiate/templates/redirect.php
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML>
+<html lang="en-US">
+    <head>
+        <script src="<?php echo $this->data['baseurlpath']; ?>/assets/js/redirect.js"></script>
+        <title>Redirect to login</title>
+    </head>
+    <body>
+        <p>Your browser seems to have Javascript disabled. Please click <a id="redirect" href="<?php echo $this->data['url']; ?>">here</a>.</p>
+    </body>
+</html>
+