Skip to content

Commit

Permalink
Add HTTPS to cdn-image
Browse files Browse the repository at this point in the history
  • Loading branch information
anagh-p committed Jan 4, 2017
1 parent 714bf94 commit 091363f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quintype/Seo/Story.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function getAndroidData($element)
private function getHeroImageUrl()
{
if (isset($this->config['cdn-name']) || isset($this->config['cdn-image'])) {
$cdn = isset($this->config['cdn-image']) ? $this->config['cdn-image'] : $this->config['cdn-name'];
$cdn = isset($this->config['cdn-image']) ? "https://".$this->config['cdn-image'] : $this->config['cdn-name'];
$imageUrl = trim($cdn, '/').'/'.$this->story['hero-image-s3-key'];

return str_replace(' ', '%20', $imageUrl);
Expand Down

0 comments on commit 091363f

Please sign in to comment.