Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Allow the header of emails to link to a webpage other than the app URL

Graham Blairbb0eb59728b5
diff --git a/backend/config/app.php b/backend/config/app.php
index e302ce327..04ac89ac2 100644
--- a/backend/config/app.php
+++ b/backend/config/app.php
@@ -45,6 +45,7 @@ return [
],
'email_logo_url' => env('APP_EMAIL_LOGO_URL'),
+ 'email_logo_link_url' => env('APP_EMAIL_LOGO_LINK_URL', env('APP_FRONTEND_URL', 'http://localhost')),
'email_footer_text' => env('APP_EMAIL_FOOTER_TEXT'),
/*
diff --git a/backend/resources/views/vendor/mail/html/message.blade.php b/backend/resources/views/vendor/mail/html/message.blade.php
index c77007d4e..3f12c2ef1 100644
--- a/backend/resources/views/vendor/mail/html/message.blade.php
+++ b/backend/resources/views/vendor/mail/html/message.blade.php
@@ -1,7 +1,7 @@
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
- <x-mail::header :url="config('app.frontend_url')">
+ <x-mail::header :url="config('app.email_logo_link_url')">
@if($appLogo = config('app.email_logo_url'))
<img src="{{ $appLogo }}" class="logo" alt="{{ config('app.name') }}"
style="max-width: 300px;">