diff --git a/src/root/build.tt b/src/root/build.tt
index d716630b..f6a5313d 100644
--- a/src/root/build.tt
+++ b/src/root/build.tt
@@ -400,7 +400,7 @@ FOR step IN steps; IF step.busy; busy = 1; END; END;
[% FOREACH metric IN build.buildmetrics %]
- [%HTML.escape(metric.name)%] |
+ c.uri_for('/job' project.name jobset.name job.name 'metric' metric.name)) %]">[%HTML.escape(metric.name)%] |
[%metric.value%] |
[%metric.unit%] |
diff --git a/src/root/job-metrics-tab.tt b/src/root/job-metrics-tab.tt
index 2aaa652c..163046b7 100644
--- a/src/root/job-metrics-tab.tt
+++ b/src/root/job-metrics-tab.tt
@@ -16,7 +16,7 @@
[% FOREACH metric IN metrics %]
- Metric: [%HTML.escape(metric.name)%]
+
[% id = "metric-" _ metric.name;
id = id.replace('\.', '_');