diff --git a/app/Models/Invitation.php b/app/Models/Invitation.php index 58d070141c0f..d2d4abb026fd 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)) {