Trim trailing slash from APP_URL

This commit is contained in:
Hillel Coren 2016-07-05 12:28:28 +03:00
parent e07301291b
commit 1fe671bffb

View File

@ -56,11 +56,11 @@ class Invitation extends EntityModel
*/ */
public function getLink($type = 'view', $forceOnsite = false) public function getLink($type = 'view', $forceOnsite = false)
{ {
if (!$this->account) { if ( ! $this->account) {
$this->load('account'); $this->load('account');
} }
$url = SITE_URL; $url = trim(SITE_URL, '/');
$iframe_url = $this->account->iframe_url; $iframe_url = $this->account->iframe_url;
if ($this->account->hasFeature(FEATURE_CUSTOM_URL)) { if ($this->account->hasFeature(FEATURE_CUSTOM_URL)) {