diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-10-10 22:18:35 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-10-10 23:46:23 +0100 |
| commit | d72b284a0846ca045e548a1c77ad11813bcbab92 (patch) | |
| tree | c78962f625387d5690001276a686412b43655dd1 /app/Services/UserService.php | |
| parent | 2d49f7de3b1ce9163abdb1271bf1de85850457d4 (diff) | |
| download | webtrees-d72b284a0846ca045e548a1c77ad11813bcbab92.tar.gz webtrees-d72b284a0846ca045e548a1c77ad11813bcbab92.tar.bz2 webtrees-d72b284a0846ca045e548a1c77ad11813bcbab92.zip | |
Working on routing
Diffstat (limited to 'app/Services/UserService.php')
| -rw-r--r-- | app/Services/UserService.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Services/UserService.php b/app/Services/UserService.php index e1181e720c..0f1c42bef1 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -356,13 +356,14 @@ class UserService $url = 'mailto:' . $contact_user->email(); } elseif ($user instanceof User) { // Logged-in users send direct messages - $url = route('message', ['to' => $contact_user->userName()]); + $url = route('message', ['to' => $contact_user->userName(), 'tree' => $tree->name()]); } else { // Visitors use the contact form. $url = route('contact', [ - 'ged' => $tree ? $tree->name() : '', - 'to' => $contact_user->userName(), - 'url' => $request->getAttribute('request_uri'), + 'tree' => $tree ? $tree->name() : '', + 'to' => $contact_user->userName(), + 'tree' => $tree->name(), + 'url' => $request->getAttribute('request_uri'), ]); } |
