Skip to content

Commit

Permalink
Merge pull request #169 from Rias500/patch-1
Browse files Browse the repository at this point in the history
Parse environment variables from baseUrl
  • Loading branch information
Tam authored Jan 21, 2019
2 parents c45a86f + ede40d9 commit 8d585e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fields/SeoField.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function getInputHtml ($value, ElementInterface $element = null): string
if ($craft->sites->currentSite->baseUrl) {
preg_match(
"((http?s?:\/\/)?(www.)?(.*)\/)",
$craft->sites->currentSite->baseUrl,
\Craft::parseEnv($craft->sites->currentSite->baseUrl),
$socialPreviewUrl
);
$socialPreviewUrl = $socialPreviewUrl[3];
Expand Down Expand Up @@ -296,4 +296,4 @@ public function getTableAttributeHtml (
}
}

}
}

0 comments on commit 8d585e8

Please sign in to comment.