Exclude header footer scripts for Admin

Created on 8 January 2020, over 4 years ago
Updated 15 February 2023, over 1 year ago

How to exclude header and footer scripts for drupal admin ? Need to provide a configuration where users can restrict this for certian set of pages.

✨ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

🇮🇳India Nikhilesh Gupta Hyderabad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States briantschu

    When testing this locally, I noticed that if I enter a value in the "Header styles" and turn on "Exclude admin", I started seeing warnings: "Warning: Undefined array key 1 in Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processHtmlHead() (line 396 of core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php)."

    I didn't test much further, because I'm only planning to use this to add scripts. Adding scripts didn't seem to cause the same warning.

Production build 0.69.0 2024