diff options
Diffstat (limited to 'app/Services/UserService.php')
| -rw-r--r-- | app/Services/UserService.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Services/UserService.php b/app/Services/UserService.php index 0f2238aee4..893d4e2354 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -400,7 +400,11 @@ class UserService $url = 'mailto:' . $contact_user->email(); } elseif ($user instanceof User) { // Logged-in users send direct messages - $url = route(MessagePage::class, ['to' => $contact_user->userName(), 'tree' => $tree->name()]); + $url = route(MessagePage::class, [ + 'to' => $contact_user->userName(), + 'tree' => $tree->name(), + 'url' => (string) $request->getUri(), + ]); } else { // Visitors use the contact form. $url = route(ContactPage::class, [ |
