Skip to content

Commit

Permalink
Consider mailto: and tel: links in the subcopy actionUrl label. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmannsven authored Feb 19, 2020
1 parent 787af0c commit 54fb709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Illuminate/Notifications/Messages/SimpleMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public function toArray()
'outroLines' => $this->outroLines,
'actionText' => $this->actionText,
'actionUrl' => $this->actionUrl,
'actionUrlReadable' => str_replace(['mailto:', 'tel:'], '', $this->actionUrl),
];
}
}
3 changes: 2 additions & 1 deletion src/Illuminate/Notifications/resources/views/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@
@slot('subcopy')
@lang(
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
'into your web browser: [:actionURL](:actionURL)',
'into your web browser: [:actionUrlReadable](:actionURL)',
[
'actionText' => $actionText,
'actionUrlReadable' => $actionUrlReadable,
'actionURL' => $actionUrl,
]
)
Expand Down

0 comments on commit 54fb709

Please sign in to comment.