From 69105928f5601f57795b1019afd1db8255d1847d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 6 Sep 2019 08:33:19 -0400 Subject: [PATCH] Use destination URL when provided in Contact::magicLink --- src/Model/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index ffdee6aa0e..0a202cef41 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2668,7 +2668,7 @@ class Contact extends BaseObject // Prevents endless loop in case only a non-public contact exists for the contact URL unset($data['uid']); - return self::magicLinkByContact($data, $contact_url); + return self::magicLinkByContact($data, $url ?: $contact_url); } /**