From bc2e7c9786042b269a2010bc25b27e4b1f92c9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Mon, 9 Mar 2020 17:08:27 +0100 Subject: [PATCH] Remove $SCRIPT_ROOT from 'admin.create_template_from_zone' URL As the URL here is contructed from Flask's "url_for" which already takes the script root into account, we do not need to add it here explicitly. This would result in a duplicate script root otherwise. --- powerdnsadmin/templates/dashboard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/templates/dashboard.html b/powerdnsadmin/templates/dashboard.html index 260b095..59dbfed 100755 --- a/powerdnsadmin/templates/dashboard.html +++ b/powerdnsadmin/templates/dashboard.html @@ -251,7 +251,7 @@ data['name'] = modal.find('#template_name').val(); data['description'] = modal.find('#template_description').val(); data['domain'] = modal.find('#domain').val(); - applyChanges(data, $SCRIPT_ROOT + "{{ url_for('admin.create_template_from_zone') }}", true); + applyChanges(data, "{{ url_for('admin.create_template_from_zone') }}", true); modal.modal('hide'); }) modal.find('#button_close').click(function() {