Skip to content

Commit

Permalink
fix not clickable links (#1098)
Browse files Browse the repository at this point in the history
Co-authored-by: Fred Falcon <7475382+fredfalcon@users.noreply.github.com>
  • Loading branch information
AtmegaBuzz and fredfalcon authored Mar 4, 2023
1 parent 3cb4ead commit 4ab5e5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,18 @@ <h1 class="title">REPORT A BUG</h1>
"<br>Sweet! We haven't got any bug from this domain till now"
);
} else if (trint.number == 2) {
var link = "{% env 'FQDN' %}/domain/" + trint.domain;
var link = "/domain/" + trint.domain;
$('.message').html(
"<br>Multiple bugs already exist on this domain, ensure you are not submitting a duplicate bug by going here:<br> " +
link);
`<a href=${link} target="_blank">{% env 'FQDN' %}${link}</a>`);
} else if (trint.number == 1) {
var link = "{% env 'FQDN' %}/issue/" + trint.id;
var link = "/issue/" + trint.id;
$('.message').html(
"<br><div class='row'>A bug with same URL already exists <br>Description: " +
trint.description + "<br>Created on: " + trint.date + "/" +
trint.month + "/" + trint.year +
"<br>Ensure you are not submitting a duplicate bug by checking here</div>: " +
link);
`<a href=${link} target="_blank">{% env 'FQDN' %}${link}</a>`);
}
},
error: function (response) {
Expand Down

0 comments on commit 4ab5e5d

Please sign in to comment.