@@ -21,12 +21,12 @@  | 
                                                    ||
| 21 | 21 |              <p>It seems we already have <?= ngettext('a definition', 'some definitions', $glossary->num_search_matches) ?> for that. Would you care to see <?= ngettext('it', 'them', $glossary->num_search_matches) ?>?</p> | 
                                                        
| 22 | 22 | <ul class="glossary">  | 
                                                        
| 23 | 23 | <?php  | 
                                                        
| 24 | -              foreach ($glossary->search_matches as $match) { | 
                                                        |
| 25 | -                  $URL = new \MySociety\TheyWorkForYou\Url('glossary'); | 
                                                        |
| 26 | - $URL->insert(['gl' => $match['glossary_id']]);  | 
                                                        |
| 27 | - $URL->remove(['g']);  | 
                                                        |
| 28 | -                  $term_link = $URL->generate('url'); | 
                                                        |
| 29 | - ?>  | 
                                                        |
| 24 | +                foreach ($glossary->search_matches as $match) { | 
                                                        |
| 25 | +                    $URL = new \MySociety\TheyWorkForYou\Url('glossary'); | 
                                                        |
| 26 | + $URL->insert(['gl' => $match['glossary_id']]);  | 
                                                        |
| 27 | + $URL->remove(['g']);  | 
                                                        |
| 28 | +                    $term_link = $URL->generate('url'); | 
                                                        |
| 29 | + ?>  | 
                                                        |
| 30 | 30 | <li>  | 
                                                        
| 31 | 31 | <a href="<?= $term_link ?>"><?= $match['title']?></a>  | 
                                                        
| 32 | 32 | </li>  | 
                                                        
@@ -45,7 +45,7 @@  | 
                                                    ||
| 45 | 45 | $url->insert(['gl' => $glossary->next_term['glossary_id']]);  | 
                                                        
| 46 | 46 |          $next_link = $url->generate('url'); | 
                                                        
| 47 | 47 | |
| 48 | - $nextprev = [  | 
                                                        |
| 48 | + $nextprev = [  | 
                                                        |
| 49 | 49 | 'next' => [  | 
                                                        
| 50 | 50 | 'url' => $next_link,  | 
                                                        
| 51 | 51 | 'title' => 'Next term',  |