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
This commit is contained in:
parent
bc001074b1
commit
b43ead53c6
@ -12,7 +12,7 @@ class EmailService:
|
|||||||
'appointment': appointment,
|
'appointment': appointment,
|
||||||
'preferred_dates': appointment.get_preferred_dates_display(),
|
'preferred_dates': appointment.get_preferred_dates_display(),
|
||||||
'preferred_times': appointment.get_preferred_time_slots_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)
|
html_message = render_to_string('emails/admin_notification.html', context)
|
||||||
|
|||||||
@ -271,7 +271,7 @@
|
|||||||
|
|
||||||
<!-- Action Button -->
|
<!-- Action Button -->
|
||||||
<div class="action-section">
|
<div class="action-section">
|
||||||
<a href="{{ admin_dashboard_url }}" class="button">
|
<a href="{{ admin_dashboard_url }}" target="_blank" class="button">
|
||||||
Review Appointment Request
|
Review Appointment Request
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user