From ef54f0021267d039f7444d709296c627882d4495 Mon Sep 17 00:00:00 2001
From: Ben Busby
Date: Wed, 6 Mar 2024 10:14:52 -0700
Subject: [PATCH] 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
---
app/templates/error.html | 165 ++++++++++++++++++++-------------------
1 file changed, 83 insertions(+), 82 deletions(-)
diff --git a/app/templates/error.html b/app/templates/error.html
index 99e87b31a3..dcaf3cfcf3 100644
--- a/app/templates/error.html
+++ b/app/templates/error.html
@@ -19,87 +19,88 @@ Error
{{ error_message }}
-
-
-
-
- Other options:
-
-
-
+ {% if query and translation %}
+
+
+
+
+ Other options:
+
+
+
+ {% endif %}
Return Home