From e81f070a7929e6c7a1f4ff097c7106a5d256d90e Mon Sep 17 00:00:00 2001 From: user202729 <25191436+user202729@users.noreply.github.com> Date: Sun, 2 Dec 2018 22:56:44 +0700 Subject: [PATCH] Use tojson filter to convert url to Javascript string Fixes #4450. --- qutebrowser/html/error.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/html/error.html b/qutebrowser/html/error.html index b3e6f576e..e03ddad67 100644 --- a/qutebrowser/html/error.html +++ b/qutebrowser/html/error.html @@ -61,7 +61,7 @@ li { {{ super() }} function tryagain() { - location.href = "{{ url }}"; + location.href = {{ url|tojson }}; } {% endblock %}