Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Prevent adding content to Blade stacks twice #10271

Merged
merged 1 commit into from
Jun 6, 2024
Merged

[5.x] Prevent adding content to Blade stacks twice #10271

merged 1 commit into from
Jun 6, 2024

Conversation

JohnathonKoster
Copy link
Contributor

This PR prevents prepending/pushing stack contents twice to a Blade stack. This seems to be the root cause of #10258, but would need help to validate this. This issue can be reproduced by utilizing a Blade template and a Blade layout together.

The changes in this PR address this by not invoking the interop logic to push to Blade if the request is coming from Blade itself. I've added another example page to https://github.com/JohnathonKoster/statamic-antlers-blade-stacks with this setup configured (simply navigate to /blade-route to observe the before/after behaviors).

@jasonvarga jasonvarga merged commit e9d908d into statamic:5.x Jun 6, 2024
17 checks passed
@jasonvarga jasonvarga deleted the fix-duplicate-blade-stack-contents branch June 6, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants