From 756968d48723c3f3b6aa3c451e06b56f312041fa Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 16 Sep 2024 16:01:55 +0200
Subject: [PATCH] fix login url

---
 classes/shibd_discofeed.class.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/classes/shibd_discofeed.class.php b/classes/shibd_discofeed.class.php
index a982228..990c06b 100644
--- a/classes/shibd_discofeed.class.php
+++ b/classes/shibd_discofeed.class.php
@@ -141,8 +141,7 @@ class shibd_discofeed
                     // see also https://help.switch.ch/aai/guides/discovery/login-link-composer/
                     $sUrl = $this->_sShibLoginUrl
                         . '?entityID='. urlencode($sEntityId) 
-                        . "&target=" . urlencode($sEntityId) 
-                        . "&target=" . urlencode($this->SELFURL.($aConfig['return-url']??''))
+                        . "&target=" . urlencode($this->SELFURL.($this->aConfig['return-url']??''))
                         ;
     
                     $sKey=$sLabel;
-- 
GitLab