From f74c03ab906fd57df46aae86567361de15a266ef Mon Sep 17 00:00:00 2001 From: Felix Rindt Date: Sat, 27 Jan 2024 14:36:05 +0100 Subject: [PATCH] Fix: absolute action url for custom event notification --- ephios/core/services/notifications/types.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ephios/core/services/notifications/types.py b/ephios/core/services/notifications/types.py index e9eaaac6..3a4f094f 100644 --- a/ephios/core/services/notifications/types.py +++ b/ephios/core/services/notifications/types.py @@ -586,7 +586,10 @@ def get_actions(cls, notification): str(_("View message")), make_absolute(reverse("core:notification_detail", kwargs={"pk": notification.pk})), ), - (str(_("View event")), notification.data.get("event_url", event.get_absolute_url())), + ( + str(_("View event")), + make_absolute(notification.data.get("event_url", event.get_absolute_url())), + ), ]