Problem/Motivation
A module that sets _no_big_pipe: 'false' on a route disables BigPipe for that route. With unquoted false, BigPipe processes placeholders as usual.
Both BigPipeStrategy::processPlaceholders() and BigPipeHooks::pageAttachments() treat the non-empty string 'false' as true. The first skips BigPipe placeholder processing. The second skips JavaScript detection.
Steps to reproduce
- Enable BigPipe and its
big_pipe_testtest module. Inbig_pipe_test.routing.yml, set_no_big_pipe: 'false'underoptionson thebig_pipe_testroute and rebuild caches. - While logged in, visit
/big_pipe_testand inspect the response source. It contains neither BigPipe placeholders nor the markup for JavaScript detection. - Set
_no_big_pipe: false, rebuild caches and repeat. Both are present.
Proposed resolution
Use BooleanRouteOption::get() from #3644412: [PP-1] Routing treats "false" as TRUE for _admin_route and no_cache in both methods. This makes 'false' behave like FALSE and triggers a deprecation naming _no_big_pipe.
Test placeholder processing in BigPipeStrategyTest and JavaScript detection in BigPipeTest, both with _no_big_pipe: 'false'.
Remaining tasks
Postponed on #3644412: [PP-1] Routing treats "false" as TRUE for _admin_route and no_cache.
Track rejection of deprecated inputs in #3644403: [13.x] Reject deprecated non-boolean input in boolean config values.
User interface changes
None.
API changes
The _no_big_pipe route option follows the boolean input rules from #3644412: [PP-1] Routing treats "false" as TRUE for _admin_route and no_cache. Use unquoted booleans in routing YAML and native booleans in PHP.
Data model changes
None.
Release notes snippet
The deprecated route option value _no_big_pipe: 'false' now leaves BigPipe enabled.
Issue fork drupal-3644414
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
Comment #2
pancho