diff --git a/static/js/src/app/campaign_results.js b/static/js/src/app/campaign_results.js index a16bb13c..f51dfca7 100644 --- a/static/js/src/app/campaign_results.js +++ b/static/js/src/app/campaign_results.js @@ -933,7 +933,7 @@ function report_mail(rid, cid) { }).then(function (result) { if (result.value){ api.campaignId.get(cid).success((function(c) { - report_url = new URL(c.url) + report_url = new URL(`${location.protocol}//${location.host}`) report_url.pathname = '/report' report_url.search = "?rid=" + rid $.ajax({