mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-08-11 09:16:23 -04:00
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
This commit is contained in:
parent
af60509a8d
commit
ef54f00212
@ -19,6 +19,7 @@
|
|||||||
{{ error_message }}
|
{{ error_message }}
|
||||||
</p>
|
</p>
|
||||||
<hr>
|
<hr>
|
||||||
|
{% if query and translation %}
|
||||||
<p>
|
<p>
|
||||||
<h4><a class="link" href="https://farside.link">{{ translation['continue-search'] }}</a></h4>
|
<h4><a class="link" href="https://farside.link">{{ translation['continue-search'] }}</a></h4>
|
||||||
<ul>
|
<ul>
|
||||||
@ -49,7 +50,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="https://kagi.com">Kagi</a>
|
<a href="https://kagi.com">Kagi</a>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Recommended by Whoogle maintainer</li>
|
|
||||||
<li>Requires account</li>
|
<li>Requires account</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="link-color" href="https://kagi.com/search?q={{query}}">
|
<a class="link-color" href="https://kagi.com/search?q={{query}}">
|
||||||
@ -101,5 +101,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
<a class="link" href="home">Return Home</a>
|
<a class="link" href="home">Return Home</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user