Fix Slack notifications when URL is present (#4871)

This commit is contained in:
Frank Elsinga
2024-06-28 01:17:34 +02:00
committed by GitHub

View File

@@ -48,7 +48,8 @@ class Slack extends NotificationProvider {
}
if (monitorJSON.url) {
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,
});
}