diff --git a/server/notification-providers/slack.js b/server/notification-providers/slack.js index acf7427ee..702256429 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -48,7 +48,8 @@ class Slack extends NotificationProvider { } - if (this.extractAdress(monitorJSON)) { + const address = this.extractAdress(monitorJSON); + if (address) { actions.push({ "type": "button", "text": { @@ -56,7 +57,7 @@ class Slack extends NotificationProvider { "text": "Visit site", }, "value": "Site", - "url": monitorJSON.url, + "url": address, }); }