Skip to content

Commit

Permalink
fix: Fixed a regression where the robots tag would be set to none
Browse files Browse the repository at this point in the history
… for CP requests, which is incorrect, because GraphQL and meta container endpoints are CP requests ([#1414](#1414))
  • Loading branch information
khalwat committed Feb 13, 2024
1 parent ecb0b12 commit 561ac9d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/models/metatag/RobotsTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ public function prepForRender(&$data): bool
if ($response->statusCode >= 400) {
$data['content'] = 'none';
}
if ($request->getIsCpRequest()) {
$data['content'] = 'none';
}
try {
if ($request->getToken() !== null) {
$data['content'] = 'none';
Expand Down

0 comments on commit 561ac9d

Please sign in to comment.