diff --git a/app/templates/template_edit.html b/app/templates/template_edit.html
index c63e684..673591c 100644
--- a/app/templates/template_edit.html
+++ b/app/templates/template_edit.html
@@ -195,7 +195,7 @@
// following unbind("click") is to avoid multiple times execution
modal.find('#button_apply_confirm').unbind("click").click(function() {
var data = getTableData(table);
- applyChanges(data, '/template/' + template + '/apply', true);
+ applyChanges(data, $SCRIPT_ROOT + '/template/' + template + '/apply', true);
modal.modal('hide');
})
modal.modal('show');