From a7c98621aea5aaf1742a61e95e6c9325a6e404e7 Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Tue, 9 Jul 2013 15:20:49 +0530 Subject: [PATCH] Fix: Proper way of specifying URLs --- templates/web.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web.html b/templates/web.html index 232c704..a194134 100644 --- a/templates/web.html +++ b/templates/web.html @@ -30,7 +30,7 @@ if(!url.match(/http/)) { url = 'http://' + url; } - window.location.href = '/SWeeText?url=' + encodeURIComponent(url); + window.location.href = '{{ url_for("SWeeText") }}?url=' + encodeURIComponent(url); } -- 1.7.10.4