Add a case when back_to is not set

This commit is contained in:
PCoder 2019-01-30 00:38:09 +01:00
parent bed453a208
commit 678f6f424e
1 changed files with 9 additions and 3 deletions

View File

@ -32,9 +32,15 @@
<div class="center">
<p>
Sorry, this part of {{ domain }} is not reachable by IPv4. Please
upgrade to IPv6 and try to reach <a
href="{{ back_to_url }}">{{ domain }}</a> again.</p>
{% if domain != "" %}
Sorry, this part of {{ domain }} is not reachable by IPv4. Please
upgrade to IPv6 and try to reach <a
href="{{ back_to_url }}">{{ domain }}</a> again.
{% else %}
Sorry, this part of the Internet is not reachable by IPv4. Please
upgrade to IPv6 and try again.
{% endif %}
</p>
</div>
</body>
</html>