From 5a715a2db5e280de7c3debec551efa5d5ae9507d Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Thu, 25 Jul 2024 11:07:43 -0700 Subject: [PATCH] use url.JoinPath rather than replacing the whole path when setting notification URL --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4b0a584..6d628a0 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,7 @@ func ConfigureNotifications(cfg *viper.Viper, notifPath string) error { if err != nil { return errors.Wrapf(err, "failed to parse %s", notifBase) } - notifURL.Path = notifPath + notifURL = notifURL.JoinPath(notifPath) NotifsInit(notifURL.String()) return nil }