Browse Source

Modified frontend reporting logic to be more flexible with campaigns that include a path in their URL.

Fixes #1985
pull/2060/head
Jordan Wright 8 months ago
parent
commit
c1d3c7cd75
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      static/js/dist/app/campaign_results.min.js
  2. +3
    -3
      static/js/src/app/campaign_results.js

+ 1
- 1
static/js/dist/app/campaign_results.min.js
File diff suppressed because it is too large
View File


+ 3
- 3
static/js/src/app/campaign_results.js View File

@ -933,9 +933,9 @@ function report_mail(rid, cid) {
}).then(function (result) {
if (result.value){
api.campaignId.get(cid).success((function(c) {
report_url = c.url;
report_url += report_url.endsWith("/") ? "" : "/";
report_url += "report?rid=" + rid;
report_url = new URL(c.url)
report_url.pathname = '/report'
report_url.search = "?rid=" + rid
$.ajax({
url: report_url,
method: "GET",

Loading…
Cancel
Save