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

  1. Enable BigPipe and its big_pipe_test test module. In big_pipe_test.routing.yml, set _no_big_pipe: 'false' under options on the big_pipe_test route and rebuild caches.
  2. While logged in, visit /big_pipe_test and inspect the response source. It contains neither BigPipe placeholders nor the markup for JavaScript detection.
  3. 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

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

pancho created an issue. See original summary.

pancho’s picture

Title: [PP-1] Route option _no_big_pipe: 'false' disables BigPipe » [PP-2] Route option _no_big_pipe: 'false' disables BigPipe