Skip to content

Commit a086a12

Browse files
Adds more basic info to the default 404 page (#9656)
* Adds more basic info to the default 404 page * tweak text: "404 error page" * Use request.get_host to contextualize the 404 message slightly * Update readthedocs/templates/404.html Co-authored-by: Eric Holscher <[email protected]> Co-authored-by: Eric Holscher <[email protected]>
1 parent 55fd87e commit a086a12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readthedocs/templates/404.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
{% block language-select-form %}{% endblock %}
1717

1818
{% block content %}
19+
<p>{% blocktrans context "404 page" %}This is a 404 error page. The link you have followed or the URL that you entered does not exist. It might be that the documentation has been updated, or this page has been removed.{% endblocktrans %}</p>
20+
21+
<a href="/">{% blocktrans with site_name=request.get_host|default:_("this site") context "404 page" %}Back to the front page of {{ site_name }}{% endblocktrans %}</a>
22+
1923
<pre style="line-height: 1.25; white-space: pre;">
2024

2125
\ SORRY /

0 commit comments

Comments
 (0)