Only show redirects on error page if query is available

The redirects portion of the error page is only needed in scenarios
where the instance is rate limited, in which case the user's query is
provided to the error template. If this isn't provided, it should just
display the error and allow the user to redirect to the home page.

Fixes #1122
pull/1129/head
Ben Busby 2 months ago
parent af60509a8d
commit ef54f00212
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1

@ -19,6 +19,7 @@
{{ error_message }}
</p>
<hr>
{% if query and translation %}
<p>
<h4><a class="link" href="https://farside.link">{{ translation['continue-search'] }}</a></h4>
<ul>
@ -49,7 +50,6 @@
<li>
<a href="https://kagi.com">Kagi</a>
<ul>
<li>Recommended by Whoogle maintainer</li>
<li>Requires account</li>
<li>
<a class="link-color" href="https://kagi.com/search?q={{query}}">
@ -101,5 +101,6 @@
</ul>
<hr>
</p>
{% endif %}
<a class="link" href="home">Return Home</a>
</div>

Loading…
Cancel
Save