Skip to content

Commit

Permalink
Merge pull request #2696 from forkcms/fix-incorrect-meta-tags-in-blog
Browse files Browse the repository at this point in the history
Use correct check for blog detail revision
  • Loading branch information
carakas committed Dec 19, 2018
2 parents e5080ee + 17b41f4 commit 17d2d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Frontend/Modules/Blog/Actions/Detail.php
Expand Up @@ -57,7 +57,7 @@ protected function setMeta(Meta $meta): void
parent::setMeta($meta);

// Add no-index, so the draft won't get accidentally indexed
if ($this->url->getParameter('revision', 'int') !== 0) {
if ($this->url->getParameter('revision', 'int') !== null) {
$this->header->addMetaData(['name' => 'robots', 'content' => 'noindex, nofollow'], true);
}
}
Expand Down

0 comments on commit 17d2d8a

Please sign in to comment.