aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2024-04-12 21:36:13 +0200
committerSergey Poznyakoff <gray@gnu.org>2024-04-12 21:36:13 +0200
commit3f8020c01af418cccb8c9fa8860e615fbcc262d1 (patch)
treef7d1d094b86b9eae659b19ab78f9ab1e9a5d3668
parent58f839a3e3395c46d77fbf4fa7f955570e38fe98 (diff)
downloadweb-master.tar.gz
web-master.tar.bz2
Preserve selected strategy when following match linksHEADmaster
-rw-r--r--docker/templates/index.html2
-rw-r--r--docker/views.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/docker/templates/index.html b/docker/templates/index.html
index a6eed32..08dd3be 100644
--- a/docker/templates/index.html
+++ b/docker/templates/index.html
@@ -37,7 +37,7 @@
{% for mt in items %}
<li>
{% for term in mt.1 %}
- <a href="?q={{ term|urlencode }}&amp;db={{ mt.0|urlencode }}&amp;define=1" title="Define {{ term }}">{{ term|title }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
+ <a href="?q={{ term|urlencode }}&amp;db={{ mt.0|urlencode }}&amp;define=1&amp;strategy={{ mtc.strategy|urlencode }}" title="Define {{ term }}">{{ term|title }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
</li>
{% endfor %}
</ul>
diff --git a/docker/views.py b/docker/views.py
index f151d07..0961fc8 100644
--- a/docker/views.py
+++ b/docker/views.py
@@ -179,6 +179,7 @@ def index(request, item=None):
if not mtc:
mtc = result
+ mtc['strategy'] = strategy
mtc['dbnames'] = {}
if 'matches' in mtc:
for m in mtc['matches']:

Return to:

Send suggestions and report system problems to the System administrator.