aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_covid19/templates/base.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-03 18:28:24 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-03 18:28:26 -0700
commitc5f018e734def3ee274f64cd8bbe2f8974810ffb (patch)
tree33693938c772b90fa36342ec8c4a12538697ee0b /fatcat_covid19/templates/base.html
parent61e78f658bda90ff135029b1e864f6f49d9cd8f8 (diff)
downloadfatcat-covid19-c5f018e734def3ee274f64cd8bbe2f8974810ffb.tar.gz
fatcat-covid19-c5f018e734def3ee274f64cd8bbe2f8974810ffb.zip
wrangle lang_code / error templates a bit more
Still not perfect: a 404 is always in 'en' and all links are then not in the local lang.
Diffstat (limited to 'fatcat_covid19/templates/base.html')
-rw-r--r--fatcat_covid19/templates/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_covid19/templates/base.html b/fatcat_covid19/templates/base.html
index 37c5cab..5d57a89 100644
--- a/fatcat_covid19/templates/base.html
+++ b/fatcat_covid19/templates/base.html
@@ -50,7 +50,7 @@
<i class="dropdown icon" style="margin-left: 0.2em;"></i>
<div class="menu">
{% for lang_code, lang_name in config.SUPPORTED_LANGUAGES.items() %}
- <a class="item" href="{{ url_for(request.endpoint, lang_code=lang_code) }}">{{ lang_name }}</a>
+ <a class="item" href="{{ url_for(request.endpoint or "search.page_home", lang_code=lang_code) }}">{{ lang_name }}</a>
{% endfor %}
</div>
</div>