From f1b763a02a3bf5efbb0123b5f5184d5edbbae3ee Mon Sep 17 00:00:00 2001 From: Arvind Date: Thu, 14 Mar 2013 14:14:58 +0530 Subject: [PATCH] Fixing minor bug - Editor button on the index page misbehaved because of having hardcoded url to it. Fix is to use url_for to generate the url. --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 01ca4c3..320de59 100644 --- a/templates/index.html +++ b/templates/index.html @@ -185,7 +185,7 @@ } function editTreeJSON() { var json = $('#tree-json-loaded').val(); - window.open('/editor?json='+json); + window.open("{{ url_for('editor') }}?json="+json); } -- 1.7.10.4