From 5a0af67b48dccb405799b5370d7364536fa2d411 Mon Sep 17 00:00:00 2001 From: mboudet Date: Fri, 8 Feb 2019 16:11:53 +0000 Subject: [PATCH] Actually fix part 1 --- js/expression-fix.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/expression-fix.js b/js/expression-fix.js index 9697b0c..acc39e3 100644 --- a/js/expression-fix.js +++ b/js/expression-fix.js @@ -12,7 +12,8 @@ this.currentColor = $('#propertyColorMenu').find(':selected').text(); this.downloadMessage = $(''); this.downloadLink = $('#expressionDownloadLink'); - var link = '/analysis-expression/download?feature_ids=' + this.feature_id + '&analysis_id=' + this.selectedAnalysis; + this.base_url = settings.basePath; + var link = this.base_url + 'analysis-expression/download?feature_ids=' + this.feature_id + '&analysis_id=' + this.selectedAnalysis; $('#expressionDownloadLink').attr('href', link); //spacing variables @@ -86,7 +87,7 @@ this.expNormal(); // Change the link address - var link = '/analysis-expression/download?feature_ids=' + this.feature_id + '&analysis_id=' + this.selectedAnalysis; + var link = this.base_url + '/analysis-expression/download?feature_ids=' + this.feature_id + '&analysis_id=' + this.selectedAnalysis; $('#expressionDownloadLink').attr('href', link); },