From 3e39fee08f7172874c2cac789abe5a7e582c669b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Fri, 25 Aug 2017 13:28:48 +0200
Subject: [PATCH] Build the logout link manually in consentAdmin, instead of
 getting the current URL.

---
 modules/consentAdmin/templates/consentadmin.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/consentAdmin/templates/consentadmin.php b/modules/consentAdmin/templates/consentadmin.php
index 13829af83..ce3386c4c 100644
--- a/modules/consentAdmin/templates/consentadmin.php
+++ b/modules/consentAdmin/templates/consentadmin.php
@@ -127,6 +127,6 @@ TRSTART;
 
         <h2>Logout</h2>
 
-            <p><a href="<?php echo htmlentities(\SimpleSAML\Utils\HTTP::getSelfURL()) . '?logout'; ?>">Logout</a></p>
+            <p><a href="<?php echo \SimpleSAML\Module::getModuleURL('consentAdmin/consentAdmin.php', array('logout' => 1)); ?>">Logout</a></p>
 
 <?php $this->includeAtTemplateBase('includes/footer.php');
-- 
GitLab