Skip to content

Commit

Permalink
use url.JoinPath rather than replacing the whole path when setting no…
Browse files Browse the repository at this point in the history
…tification URL
  • Loading branch information
ianmcorvidae committed Jul 25, 2024
1 parent 8043189 commit 5a715a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5a715a2

Please sign in to comment.