From 6808677d4fc70d7b66806d3ba178a52c14a60277 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Sun, 20 Jun 2021 17:17:20 +0200 Subject: [PATCH] Add link to result --- lib/plugins/webhook/index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/plugins/webhook/index.js b/lib/plugins/webhook/index.js index 91d399c95..f7def98bd 100644 --- a/lib/plugins/webhook/index.js +++ b/lib/plugins/webhook/index.js @@ -10,7 +10,19 @@ const Format = require('./format'); const friendlynames = require('../../support/friendlynames'); function getPageSummary(data, format, resultUrls, alias, screenshotType) { - let text = format.heading('Tested data for ' + data.info.url); + let text = format.heading( + 'Tested data for ' + + data.info.url + + (resultUrls.hasBaseUrl() + ? format.link( + resultUrls.absoluteSummaryPagePath( + data.info.url, + alias[data.info.url] + ), + '(result)' + ) + : '') + ); if (resultUrls.hasBaseUrl()) { text += format.image(