diff --git a/VERSIONS_HOTLINE/138416 b/VERSIONS_HOTLINE/138416 new file mode 100644 index 0000000000000000000000000000000000000000..db51bef04e9ac2f61167c31bf6062873518d7b70 --- /dev/null +++ b/VERSIONS_HOTLINE/138416 @@ -0,0 +1 @@ + - ticket #138416 : Magasin de thèmes : Correction du lien d'accès aux domaines qui sont dans des carrousels. \ No newline at end of file diff --git a/library/templates/Intonation/Library/View/Wrapper/Domain.php b/library/templates/Intonation/Library/View/Wrapper/Domain.php index e2a0daa8818025d62cde40186eb03eb93bf8be76..00baef2495e6f63aebc3f9c041677fd76c81e082 100644 --- a/library/templates/Intonation/Library/View/Wrapper/Domain.php +++ b/library/templates/Intonation/Library/View/Wrapper/Domain.php @@ -51,7 +51,7 @@ class Intonation_Library_View_Wrapper_Domain extends Intonation_Library_View_Wra $url ['id_module'] = $this->_widget_context->getId(); return (new Intonation_Library_Link) - ->setUrl($this->_view->url($url)) + ->setUrl($this->_view->url($url, null, true)) ->setImage($this->getIco('read-document', 'library')) ->setText($this->_('Voir les documents')) ->setTitle($this->_getMainLinkTitle()); diff --git a/tests/scenarios/Templates/TemplatesDomainTest.php b/tests/scenarios/Templates/TemplatesDomainTest.php index 9eb7b5f8aa9e5ac9ae87923ea5d22b9aac8fef12..cb8460d34c3efea6e4c8f2738a10834073e8689c 100644 --- a/tests/scenarios/Templates/TemplatesDomainTest.php +++ b/tests/scenarios/Templates/TemplatesDomainTest.php @@ -67,4 +67,10 @@ class TemplatesDomainWidgetWithDescriptionLengthTest extends AbstractControllerT $this->assertXPathContentContains('//div[contains(@class, "domain_browser widget")]//p[contains(@class, "model_description")]', 'La description s\'arrête ici …'); } + + + /** @test */ + public function catalogueLinkShouldNotContainsUrlParams() { + $this->assertXPathContentContains('//div//a[@href="/recherche/simple/id_catalogue/2/id_module/1"]', 'BD'); + } }