- Issue created by @generalredneck
- π¦πΊAustralia nigelcunningham Geelong
I agree.
I'm planning on implementing a plugin / event based way of altering the content. The link extractor is currently a prime target and modifications like this would fit in well to such a rework.
Hopefully not far away, though I'm checking through the issue queue for other ideas before starting on this.
- π¦πͺUnited Arab Emirates ThirstySix
We need to preprocess the head for the development environment, such as adding a noindex meta tag. Need a invoke hook to enable other modules to modify the PDF response.
For Ex:
/** * Implements hook_printable_pdf_response_alter(). */ function HOOK_printable_pdf_response_alter(\Symfony\Component\HttpFoundation\Response $response) { // Check if the response is a PDF file if ($response->headers->get('Content-Type'), 'application/pdf') { // Add noindex, nofollow meta tag for PDF responses $response->headers->set('X-Robots-Tag', 'noindex, nofollow'); } }