Skip to content

Commit

Permalink
set x-robots-tag for preview links too
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Aug 28, 2024
1 parent 8af51bf commit c8bf873
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ public function handleRequest($request, bool $skipSpecialHandling = false): Base
$generalConfig->disallowRobots ||
$request->getIsCpRequest() ||
$request->getToken() !== null ||
$request->getIsPreview() ||
($request->getIsActionRequest() && !($request->getIsLoginRequest() && $request->getIsGet()))
) {
$headers->set('X-Robots-Tag', 'none');
Expand Down

0 comments on commit c8bf873

Please sign in to comment.