diff --git a/qutebrowser/html/error.html b/qutebrowser/html/error.html
index ef50682ef..eab68a031 100644
--- a/qutebrowser/html/error.html
+++ b/qutebrowser/html/error.html
@@ -61,10 +61,7 @@ li {
{{ super() }}
function tryagain()
{
- location.reload();
-}
-function searchFor(uri) {
- location.href = uri;
+ location.href = url;
}
{% endblock %}