Fix transfer share links and redesign recipient download email.
Deploy Ladill Transfer / deploy (push) Successful in 36s

Use transfer.ladill.com share URLs in notifications and APIs, add the email
logo, and show file details with a prominent download button.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-08 15:56:06 +00:00
co-authored by Cursor
parent a0fce19402
commit c396c97ce2
7 changed files with 61 additions and 20 deletions
@@ -139,7 +139,7 @@ class ChunkedUploadController extends Controller
'data' => [
'id' => $transfer->id,
'title' => $transfer->title,
'public_url' => $transfer->qrCode?->publicUrl(),
'public_url' => $transfer->qrCode?->shareUrl(),
'paid_until' => $transfer->paid_until?->toIso8601String(),
'expires_at' => $transfer->paid_until?->toIso8601String(),
'files' => $transfer->files->map(fn ($file) => [
@@ -68,7 +68,7 @@ class TransferController extends Controller
'data' => [
'id' => $transfer->id,
'title' => $transfer->title,
'public_url' => $transfer->qrCode?->publicUrl(),
'public_url' => $transfer->qrCode?->shareUrl(),
'paid_until' => $transfer->paid_until?->toIso8601String(),
'expires_at' => $transfer->paid_until?->toIso8601String(),
'files' => $transfer->files->map(fn ($file) => [
+8
View File
@@ -86,6 +86,14 @@ class QrCode extends Model
return self::publicBaseUrl() . '/q/' . $this->short_code;
}
/** Direct link for emails and share UI — always on the Transfer app host. */
public function shareUrl(): string
{
$base = rtrim((string) config('app.url'), '/');
return $base . '/q/' . $this->short_code;
}
/**
* Base URL for public QR links. Always the short platform domain
* (ladill.com) never the signed-in account/product host so printed
@@ -24,7 +24,7 @@ class TransferRecipientNotification extends Notification
public function toMail(mixed $notifiable): MailMessage
{
$transfer = $this->transfer->loadMissing(['files', 'qrCode', 'user']);
$publicUrl = $transfer->qrCode?->publicUrl() ?? '';
$publicUrl = $transfer->qrCode?->shareUrl() ?? '';
return (new MailMessage())
->subject($this->subjectLine())