Closed (fixed)
Project:
Lupus Decoupled Drupal
Version:
1.0.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2025 at 20:31 UTC
Updated:
9 Jun 2025 at 08:44 UTC
Jump to comment: Most recent
Comments
Comment #2
fagoThis is at least major. This has the potential to confuse people + might break actual sites.
Comment #3
fagook, I finally tracked the problem down due to how cache-contexts are calculated.
Lupus CE renderer correctly adds this cache contexts:
'url.query_args:_content_format',
'url.query_args:_select',
But the problem is the _content_format is actually not changed via the query parameter, but lupus_decoupled_ce_api actually changes it via the request attribute. That means, lupus_ce_renderer should expose this is a new cache context which works like getContentFormatFromRequest().,
> $default_content_format = $request->attributes->get('lupus_ce_renderer.content_format', $content_format_settings);
Comment #4
useernamee commentedComment #5
fagohttps://www.drupal.org/project/lupus_ce_renderer/releases/2.4.0 got released - with the fix! Let's require it here to solve the issue.
Comment #7
fagoComment #8
useernamee commentedComment #9
fago