You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: readthedocs/templates/404.html
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,10 @@
16
16
{% block language-select-form %}{% endblock %}
17
17
18
18
{% 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
+
<ahref="/">{% blocktrans with site_name=request.get_host|default:_("this site") context "404 page" %}Back to the front page of {{ site_name }}{% endblocktrans %}</a>
0 commit comments