Use tojson filter to convert url to Javascript string

Fixes #4450.
This commit is contained in:
user202729 2018-12-02 22:56:44 +07:00
parent 4d8c8a5d92
commit e81f070a79

View File

@ -61,7 +61,7 @@ li {
{{ super() }}
function tryagain()
{
location.href = "{{ url }}";
location.href = {{ url|tojson }};
}
{% endblock %}