Skip to content
Snippets Groups Projects
Commit 94005ab4 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

hotline #77657 : fix sso url params

parent 00fe6ca9
Branches
Tags
3 merge requests!2767Hotline,!2755Hotline,!2751hotline #77657 : fix sso url params
Pipeline #4631 passed with stage
in 44 minutes and 52 seconds
- ticket #77657 : Ressources numériques : Assimil et Lekiosk : correction d'un mauvais lien SSO lors d'une redirection après authentification
\ No newline at end of file
......@@ -30,7 +30,7 @@ class Assimil_View_Helper_Album extends ZendAfi_View_Helper_TagRessourceNumeriqu
$this->view->tagAnchor($this->view->url(['module' => 'opac',
'controller' => 'modules',
'action' => 'assimil',
'album' => $album->getId()], null, true),
'album_id' => $album->getId()], null, true),
$this->_('Vous devez être connecté sous un compte avec abonnement valide pour pouvoir accéder à la méthode')));
return $this->view->tagAnchor($album->getExternalUri(),
......
......@@ -492,7 +492,8 @@ class AssimilAjaxRecordWithNoLoggedUserDispatchTest extends AssimilAjaxRecordTes
/** @test */
public function linkToModuleAssimilShouldBePresent() {
$this->assertXPathContentContains('//a[contains(@href, "modules/assimil")]', 'Vous devez ');
$this->assertXPathContentContains('//a[contains(@href, "modules/assimil/album_id/15")]',
'Vous devez ');
}
}
......
......@@ -34,7 +34,7 @@ class Lekiosk_View_Helper_Album extends ZendAfi_View_Helper_TagRessourceNumeriqu
return $this->view->tagAnchor($this->view->url(['module' => 'opac',
'controller' => 'modules',
'action' => 'lekiosk',
'album' => $this->_album->getId()], null, true),
'album_id' => $this->_album->getId()], null, true),
$this->_('Vous devez être connecté sous un compte avec abonnement valide pour lire le magazine'), ['class' => 'bouton']);
return $this->view->tagAnchor(Lekiosk_Config::getInstance()
......
......@@ -421,7 +421,7 @@ class LeKioskRenderAlbumFromRecordTest extends LekioskServiceTestCase {
public function withoutRightsShouldDisplayErrorMessage() {
ZendAfi_Auth::getInstance()->clearIdentity();
$this->_dispatchAlbum();
$this->assertXPathContentContains('//a[contains(@href, "/modules/lekiosk/album/1")]',
$this->assertXPathContentContains('//a[contains(@href, "/modules/lekiosk/album_id/1")]',
utf8_encode('Vous devez être connecté'));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment