From 1fe671bffbc885976b33da681b55484770097971 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 5 Jul 2016 12:28:28 +0300 Subject: [PATCH] Trim trailing slash from APP_URL --- app/Models/Invitation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Invitation.php b/app/Models/Invitation.php index 58d070141c..d2d4abb026 100644 --- a/app/Models/Invitation.php +++ b/app/Models/Invitation.php @@ -56,11 +56,11 @@ class Invitation extends EntityModel */ public function getLink($type = 'view', $forceOnsite = false) { - if (!$this->account) { + if ( ! $this->account) { $this->load('account'); } - $url = SITE_URL; + $url = trim(SITE_URL, '/'); $iframe_url = $this->account->iframe_url; if ($this->account->hasFeature(FEATURE_CUSTOM_URL)) {