diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php
index f50db26057f3f92040951a8b07416fe6cdb5cfd2..d43c45a5f174cb7d49865a803ad858337e217bc9 100644
--- a/lib/SimpleSAML/Utils/HTTP.php
+++ b/lib/SimpleSAML/Utils/HTTP.php
@@ -341,7 +341,7 @@ class HTTP
 
         // we didn't have a session cookie. Redirect to the no-cookie page
 
-        $url = Module::getModuleURL('core/no_cookie.php');
+        $url = Module::getModuleURL('core/error/nocookie');
         if ($retryURL !== null) {
             $url = $this->addURLParameters($url, ['retryURL' => $retryURL]);
         }
diff --git a/modules/core/templates/no_cookie.twig b/modules/core/templates/no_cookie.twig
index 612ffb28fb42298ee1873472db6cfa0533f6f33d..6547192c0e750f8263b038b2019c4d88242f46ad 100644
--- a/modules/core/templates/no_cookie.twig
+++ b/modules/core/templates/no_cookie.twig
@@ -5,8 +5,6 @@
     <h2>{{ 'Missing cookie'|trans }}</h2>
     <p>{{ 'You appear to have disabled cookies in your browser. Please check the settings in your browser, and try again.'|trans }}</p>
     {% if retryURL is not null %}
-    <ul>
-        <li><a href="{{ retryURL|escape('html') }}" id="retry">{{ 'Retry'|trans }}</a></li>
-    </ul>
+    <p><a href="{{ retryURL|escape('html') }}" class="pure-button pure-button-red" id="retry">{{ 'Retry'|trans }}</a></p>
     {% endif %}
 {% endblock %}