From 536f71f25653e565279c94b7330f6ce00e4999ce Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Wed, 12 Jan 2022 20:06:24 +0000 Subject: [PATCH] Fix redirect to nocookie and brush up retry button a bit. --- lib/SimpleSAML/Utils/HTTP.php | 2 +- modules/core/templates/no_cookie.twig | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php index f50db2605..d43c45a5f 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 612ffb28f..6547192c0 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 %} -- GitLab