Halte Seiten mit zurückgezogenem Einstieg speicherbar und berechne den Link der Benachrichtigung in der Web-Anfrage
Das Widget prüft nur noch, dass der Einstieg existiert; die Auswahl im Editor bietet weiter nur veröffentlichte an. Der Worker kennt keine Anfrage und APP_URL ist unzuverlässig, daher gibt die Web-Anfrage die Adresse der Anfrage in der Verwaltung an die Aufgabe weiter. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a495b0d740
commit
b9407c2f98
6 files changed
+39
-20
No files matched your search
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
class InquiryReceived extends Mailable
|
||||
{
|
||||
public function __construct(public Inquiry $inquiry) {}
|
||||
public function __construct(public Inquiry $inquiry, public ?string $adminUrl = null) {}
|
||||
|
||||
public function envelope(): Envelope
|
||||
{
|
||||
@@ -28,7 +28,7 @@ public function content(): Content
|
||||
'reference' => $this->inquiry->reference,
|
||||
'issue' => $this->inquiry->issueTitle(),
|
||||
'received' => $this->inquiry->created_at?->timezone(config('app.timezone'))->format('d.m.Y H:i'),
|
||||
'url' => url('/verwaltung/anfragen/'.$this->inquiry->id),
|
||||
'url' => $this->adminUrl ?? url('/verwaltung/anfragen/'.$this->inquiry->id),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user