From ce347cee4a424494fee0cb449e80004e39948e02 Mon Sep 17 00:00:00 2001
From: Caetan <caetan.tojeiro.carpente@cern.ch>
Date: Thu, 25 Feb 2021 12:06:25 +0100
Subject: [PATCH] [#22] Remove /main from all paths, using / instead of
 /channels

---
 notifications_consumer/email_templates/base_email.html        | 4 ++--
 .../email_gateway_failure/templates/simple_notification.html  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/notifications_consumer/email_templates/base_email.html b/notifications_consumer/email_templates/base_email.html
index 7be2654..c270cee 100644
--- a/notifications_consumer/email_templates/base_email.html
+++ b/notifications_consumer/email_templates/base_email.html
@@ -38,8 +38,8 @@
             <td style="text-align: center; color: #aaa; font-size: 11px; padding-bottom: 10px;">
               <p style="padding: 10px;">
                 This notification has been sent by CERN Notifications. </br>
-                <a href="{{ base_url }}/main/channels#subscriptions">Manage your subscriptions</a> |
-                <a href="{{ base_url }}/main/channels#manage">Manage your channels</a>
+                <a href="{{ base_url }}/#subscriptions">Manage your subscriptions</a> |
+                <a href="{{ base_url }}/#manage">Manage your channels</a>
               </p>
             </td>
           </tr>
diff --git a/notifications_consumer/processors/email_gateway_failure/templates/simple_notification.html b/notifications_consumer/processors/email_gateway_failure/templates/simple_notification.html
index 718a8b9..804e073 100644
--- a/notifications_consumer/processors/email_gateway_failure/templates/simple_notification.html
+++ b/notifications_consumer/processors/email_gateway_failure/templates/simple_notification.html
@@ -9,14 +9,14 @@
       {% if channel %}
         <p>
           You may manage your channel's Incoming e-mail address through the
-          <a href="{{ base_url }}/main/channels/{{ channel}}">Notifications Portal</a>
+          <a href="{{ base_url }}/channels/{{ channel }}">Notifications Portal</a>
           verify you're sending to the correct email address "{{ email_gateway_address }}+&lt;channel-slug&gt;+&lt;level&gt;@cern.ch"
           or open a ticket through the <a href="https://cern.service-now.com/service-portal">Service Portal</a>.
         </p>
       {% else %}
         <p>
           Please verify your channels' Incoming e-mail address through the
-          <a href="{{ base_url }}/main/channels#manage">Notifications Portal</a>,
+          <a href="{{ base_url }}/#manage">Notifications Portal</a>,
           verify you're sending to the correct email address "{{ email_gateway_address }}+&lt;channel-slug&gt;+&lt;level&gt;@cern.ch"
           or open a ticket through the <a href="https://cern.service-now.com/service-portal">Service Portal</a>.
         </p>
-- 
GitLab