From a00561ff09d8c043c26a9607aadb0db80a9b5fd4 Mon Sep 17 00:00:00 2001 From: Lasse Bang Mikkelsen Date: Sun, 18 Jun 2023 12:58:10 +0200 Subject: [PATCH] Strip trailing slashes to avoid 404 --- server/notification-providers/home-assistant.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/notification-providers/home-assistant.js b/server/notification-providers/home-assistant.js index 285989ee..6b950476 100644 --- a/server/notification-providers/home-assistant.js +++ b/server/notification-providers/home-assistant.js @@ -11,7 +11,7 @@ class HomeAssistant extends NotificationProvider { try { await axios.post( - `${notification.homeAssistantUrl}/api/services/notify/${notificationService}`, + `${notification.homeAssistantUrl.trim().replace(/\/*$/, "")}/api/services/notify/${notificationService}`, { title: "Uptime Kuma", message,