diff --git a/modules/consent/templates/default/noconsent.php b/modules/consent/templates/default/noconsent.php index 66f5cac994194b082db86ada7a4667070d5f2769..3cfd349b373b658db7233dbaf864bbfd991bb01d 100644 --- a/modules/consent/templates/default/noconsent.php +++ b/modules/consent/templates/default/noconsent.php @@ -14,6 +14,11 @@ echo($this->t('{consent:noconsent_return}')); echo('</a></p>'); } + if($this->data['aboutService']) { + echo('<p><a href="' . htmlspecialchars($this->data['aboutService']) . '">'); + echo($this->t('{consent:noconsent_goto_about}')); + echo('</a></p>'); + } ?> <?php $this->includeAtTemplateBase('includes/footer.php'); ?> diff --git a/modules/consent/www/noconsent.php b/modules/consent/www/noconsent.php index c84e5060693e5519ed2b7cd9f4ec8c562e84fa6e..c18ea3b40981835d7e15a33424c752ebcbe717f4 100644 --- a/modules/consent/www/noconsent.php +++ b/modules/consent/www/noconsent.php @@ -17,11 +17,16 @@ $state = SimpleSAML_Auth_State::loadState($id, 'consent:request'); $resumeFrom = SimpleSAML_Module::getModuleURL('consent/getconsent.php'); $resumeFrom = SimpleSAML_Utilities::addURLParameter($resumeFrom, array('StateId' => $id)); +if(isset($state['Destination']['url.about']) ){ + $aboutService = $state['Destination']['url.about']; +} + $globalConfig = SimpleSAML_Configuration::getInstance(); $t = new SimpleSAML_XHTML_Template($globalConfig, 'consent:noconsent.php'); $t->data['dstMetadata'] = $state['Destination']; $t->data['resumeFrom'] = $resumeFrom; +$t->data['aboutService'] = $aboutService; $t->show(); ?> \ No newline at end of file