From e2d1febd3d312cdf084636febc12b7b487b93fb4 Mon Sep 17 00:00:00 2001 From: Linus Pahl Date: Tue, 11 Jul 2023 15:43:28 +0200 Subject: [PATCH] Fix link for alert replay in mail notification template. (#15932) --- .../notifications/types/EmailEventNotificationConfig.java | 2 +- .../event-notification-types/EmailNotificationForm.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/graylog2-server/src/main/java/org/graylog/events/notifications/types/EmailEventNotificationConfig.java b/graylog2-server/src/main/java/org/graylog/events/notifications/types/EmailEventNotificationConfig.java index 6aa5aed8594d..5862c3d6c5cc 100644 --- a/graylog2-server/src/main/java/org/graylog/events/notifications/types/EmailEventNotificationConfig.java +++ b/graylog2-server/src/main/java/org/graylog/events/notifications/types/EmailEventNotificationConfig.java @@ -50,7 +50,7 @@ public abstract class EmailEventNotificationConfig implements EventNotificationC "Description: ${event_definition_description}\n" + "Type: ${event_definition_type}\n" + "--- [Event] --------------------------------------\n" + - "Alert Replay: ${http_external_uri}/alerts/${event.id}/replay-search\n" + + "Alert Replay: ${http_external_uri}alerts/${event.id}/replay-search\n" + "Timestamp: ${event.timestamp}\n" + "Message: ${event.message}\n" + "Source: ${event.source}\n" + diff --git a/graylog2-web-interface/src/components/event-notifications/event-notification-types/EmailNotificationForm.jsx b/graylog2-web-interface/src/components/event-notifications/event-notification-types/EmailNotificationForm.jsx index ee568dd1e252..ed82ccfef05c 100644 --- a/graylog2-web-interface/src/components/event-notifications/event-notification-types/EmailNotificationForm.jsx +++ b/graylog2-web-interface/src/components/event-notifications/event-notification-types/EmailNotificationForm.jsx @@ -31,7 +31,7 @@ Title: \${event_definition_title} Description: \${event_definition_description} Type: \${event_definition_type} --- [Event] -------------------------------------- -Alert Replay: \${http_external_uri}/alerts/\${event.id}/replay-search +Alert Replay: \${http_external_uri}alerts/\${event.id}/replay-search Timestamp: \${event.timestamp} Message: \${event.message} Source: \${event.source} @@ -61,7 +61,7 @@ const DEFAULT_HTML_BODY_TEMPLATE = ` - +
Event
Alert Replay\${http_external_uri}/alerts/\${event.id}/replay-search
Alert Replay\${http_external_uri}alerts/\${event.id}/replay-search
Timestamp\${event.timestamp}
Message\${event.message}
Source\${event.source}