From b43ead53c65e953ac86dbd3e24bb6112a8cf5238 Mon Sep 17 00:00:00 2001 From: saani Date: Thu, 27 Nov 2025 21:09:52 +0000 Subject: [PATCH] fix(email): hardcode admin dashboard URL and open in new tab - Replace dynamic admin_dashboard_url construction with hardcoded production URL (https://attunehearttherapy.com/admin/dashboard) - Add target="_blank" to admin notification email button to open dashboard in new tab - Improves user experience by preventing email client navigation disruption --- meetings/email_service.py | 2 +- templates/emails/admin_notification.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meetings/email_service.py b/meetings/email_service.py index 4c5aebf..eaec3e4 100644 --- a/meetings/email_service.py +++ b/meetings/email_service.py @@ -12,7 +12,7 @@ class EmailService: 'appointment': appointment, 'preferred_dates': appointment.get_preferred_dates_display(), 'preferred_times': appointment.get_preferred_time_slots_display(), - 'admin_dashboard_url': f"{settings.FRONTEND_URL}/admin/appointments" if hasattr(settings, 'FRONTEND_URL') else '/admin/' + 'admin_dashboard_url': "https://attunehearttherapy.com/admin/dashboard" } html_message = render_to_string('emails/admin_notification.html', context) diff --git a/templates/emails/admin_notification.html b/templates/emails/admin_notification.html index 9ae9354..ce72ee1 100644 --- a/templates/emails/admin_notification.html +++ b/templates/emails/admin_notification.html @@ -271,7 +271,7 @@
- + Review Appointment Request