diff --git a/library/ZendAfi/View/Helper/ComboProfils.php b/library/ZendAfi/View/Helper/ComboProfils.php index 9c0799b772c15b5720a3c7245eac0cc6f3586967..4e431b4c6302f31a6e711922db3c26702d696c0e 100644 --- a/library/ZendAfi/View/Helper/ComboProfils.php +++ b/library/ZendAfi/View/Helper/ComboProfils.php @@ -89,7 +89,7 @@ class ZendAfi_View_Helper_ComboProfils extends ZendAfi_View_Helper_BaseHelper { protected function getProfilUrl() { - return rtrim($this->view->url(['id_profil' => null], null, true), '/') . '/?id_profil='; + return $this->view->url(['id_profil' => ''], null, true); } diff --git a/tests/application/modules/opac/controllers/IndexControllerTest.php b/tests/application/modules/opac/controllers/IndexControllerTest.php index 625762d9b68564a417712e3973e7fd9bf05c4986..97291737ffdea87c7ec5879a740889ef55052d2d 100644 --- a/tests/application/modules/opac/controllers/IndexControllerTest.php +++ b/tests/application/modules/opac/controllers/IndexControllerTest.php @@ -124,7 +124,7 @@ class IndexControllerAsAdminWithCssEditorAndNoHeaderCss extends IndexControllerA /** @test */ public function comboProfilOnChangeShouldContainsBaseUrl() { - $this->assertXPath('//div[@class="footer"]//select[@id="select_clef_profil"][@onchange="window.location=\'/?id_profil=\' + this.value"]'); + $this->assertXPath('//div[@class="footer"]//select[@id="select_clef_profil"][contains(@onchange, "\'/index/index/id_profil/\' + this.value")]'); }