From 361643c7a6530e6242af93eff71e1f503e50e658 Mon Sep 17 00:00:00 2001 From: Chris Tohill Date: Tue, 10 Jul 2018 20:45:27 -0600 Subject: [PATCH] FIX: Duplicating email confirmation link (#142) Fixed the link in the member registration confirmation email. No longer creates a link with duplicate segments --- code/email/MemberConfirmationEmail.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/email/MemberConfirmationEmail.php b/code/email/MemberConfirmationEmail.php index 647ca669..a6cdf95b 100644 --- a/code/email/MemberConfirmationEmail.php +++ b/code/email/MemberConfirmationEmail.php @@ -107,12 +107,11 @@ public function getParsedString($string) { $variables = array ( '$SiteName' => SiteConfig::current_site_config()->Title, '$LoginLink' => Controller::join_links( - $absoluteBaseURL, + $absoluteBaseURL, singleton('Security')->Link('login') ), '$ConfirmLink' => Controller::join_links( - $absoluteBaseURL, - $this->page->Link('confirm'), + $this->page->AbsoluteLink('confirm'), $this->member->ID, "?key={$this->member->ValidationKey}" ), @@ -167,4 +166,4 @@ public function getPage() { public function getMember() { return $this->member; } -} \ No newline at end of file +}