Problem/Motivation

When the minifyhtml source is enabled the permissions page is getting memory exhaust error. Do we need MinifyHTML in admin pages?

Steps to reproduce

Proposed resolution

Better to have a checkbox "Disable Minify for admin pages" in settings page where we can exclude the admin pages from minify.
OR
Disable minify for specific pages by providing a text field.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork minifyhtml-3230610

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sriharsha.uppuluri created an issue. See original summary.

sriharsha.uppuluri’s picture

Issue summary: View changes
sarjeet.singh’s picture

I think, "Disable minify for specific pages" is good and we can disable all admin page with wild card (admin/*)

sriharsha.uppuluri’s picture

StatusFileSize
new5.16 KB

Created the patch for the same.

sriharsha.uppuluri’s picture

StatusFileSize
new4.99 KB

Revised the patch for the 1.11 version.

geoanders’s picture

Version: 8.x-1.10 » 8.x-1.x-dev
StatusFileSize
new7.05 KB

Tested out patch and seems to work as intended.

I added states to only show exclude_pages textarea field when "Minified Source HTML" is enabled.

* Probably need to update tests to factor in new setting.

slydevil’s picture

Status: Active » Needs review

  • geoanders authored 6b882d3 on 8.x-1.x
    Issue #3230610 by sriharsha.uppuluri, geoanders: Minify Settings Ignore...

  • 8b94369 committed on 8.x-1.x
    Issue #3230610 added default excluded pages /admin*
    
slydevil’s picture

Status: Needs review » Fixed
slydevil’s picture

Status: Fixed » Closed (fixed)