summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Template.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 3c2663e74..7a97f6da2 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -284,7 +284,8 @@ sub get_attachment_link {
$link_text =~ s/ \[details\]$//;
$link_text =~ s/ \[diff\]$//;
- my $linkval = "attachment.cgi?id=$attachid";
+ state $urlbase = Bugzilla->localconfig->{urlbase};
+ my $linkval = "${urlbase}attachment.cgi?id=$attachid";
# If the attachment is a patch and patch_viewer feature is
# enabled, add link to the diff.