From 678f6f424edceba6fe7f9d0527c4050f4c09e8d3 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 30 Jan 2019 00:38:09 +0100 Subject: [PATCH] Add a case when back_to is not set --- no_ipv4_here/templates/no_ipv4_here/index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/no_ipv4_here/templates/no_ipv4_here/index.html b/no_ipv4_here/templates/no_ipv4_here/index.html index 66a1486..b0be2cd 100644 --- a/no_ipv4_here/templates/no_ipv4_here/index.html +++ b/no_ipv4_here/templates/no_ipv4_here/index.html @@ -32,9 +32,15 @@

- Sorry, this part of {{ domain }} is not reachable by IPv4. Please - upgrade to IPv6 and try to reach {{ domain }} again.

+ {% if domain != "" %} + Sorry, this part of {{ domain }} is not reachable by IPv4. Please + upgrade to IPv6 and try to reach {{ domain }} again. + {% else %} + Sorry, this part of the Internet is not reachable by IPv4. Please + upgrade to IPv6 and try again. + {% endif %} +

\ No newline at end of file