diff --git a/library/Class/CodifAuteur/Description.php b/library/Class/CodifAuteur/Description.php index 665affe8791aa3206ddb6bb0df730e7de1b6a7e8..3697446a100f0411b51d4eb3c96751189dd759aa 100644 --- a/library/Class/CodifAuteur/Description.php +++ b/library/Class/CodifAuteur/Description.php @@ -195,7 +195,8 @@ class Class_CodifAuteur_Description { $search = []; $replace = []; $base_url = Class_Url::assemble(['controller' => 'recherche', - 'action' => 'viewnotice']) . '/id/'; + 'action' => 'viewnotice', + 'code_rebond' => $this->getFacetCode()]) . '/id/'; foreach($records as $record) { $record_title = strip_tags($record->getTitrePrincipal()); $search []= '<i>' . $record_title . '</i>'; diff --git a/tests/scenarios/AuthorPage/AuthorPageTest.php b/tests/scenarios/AuthorPage/AuthorPageTest.php index 296dc4f3c75b1cf5c607791f0881386a0a455b4e..a478a65fb66255260936f28cfb1e42b07ea0057e 100644 --- a/tests/scenarios/AuthorPage/AuthorPageTest.php +++ b/tests/scenarios/AuthorPage/AuthorPageTest.php @@ -162,7 +162,7 @@ class AuthorPageViewByIdTest extends AuthorPageTestCase { /** @test */ public function biographyTextLesMiserablesShouldBeReplacedByLinkToRecord() { - $this->assertXPathContentContains('//div[@class="biography"]//a[contains(@href, "/recherche/viewnotice/id/9")]', 'Les Misérables'); + $this->assertXPathContentContains('//div[@class="biography"]//a[contains(@href, "/recherche/viewnotice/code_rebond/A2408/id/9")]', 'Les Misérables'); }