Make "advanced search" link include the mailinglist id
authorMagnus Hagander <magnus@hagander.net>
Sat, 8 Jul 2017 19:40:27 +0000 (21:40 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 8 Jul 2017 19:40:27 +0000 (21:40 +0200)
Previously it would always go back to an empty form, but there is no
reason not to pre-populate the dropdown on the main search site with the
selected list.

Per complaint from Erik Rijkers

django/archives/mailarchives/templates/searchform.html

index dc482b76f4c738fc5ce4558967cbc153ad003e08..4222df5fcb6117f80e55c90c64f8d7cbd4ce644c 100644 (file)
@@ -14,7 +14,7 @@
    <tr class="lastrow">
     <td class="colFirst"></td>
     <td>(enter a message-id to go directly to that message)</td>
-    <td class="colLast" align="right"><a href="https://www.postgresql.org/search/?m=1">Advanced Search</a></td>
+    <td class="colLast" align="right"><a href="https://www.postgresql.org/search/?m=1{%if searchform_list%}&amp;l={{searchform_list}}{%endif%}">Advanced Search</a></td>
    </tr>
   </table>
  </div>