diff --git a/server/notification-providers/stackfield.js b/server/notification-providers/stackfield.js index 8a5f6af5d..18914b08a 100644 --- a/server/notification-providers/stackfield.js +++ b/server/notification-providers/stackfield.js @@ -25,7 +25,8 @@ class Stackfield extends NotificationProvider { const baseURL = await Settings.get("primaryBaseURL"); if (baseURL) { - textMsg += `\n${baseURL + getMonitorRelativeURL(monitorJSON.id)}`; + const urlPath = monitorJSON ? getMonitorRelativeURL(monitorJSON.id) : "/"; + textMsg += `\n${baseURL + urlPath}`; } const data = {