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] Fix bard text trimming when CP is on root URL #11127

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

jacksleight
Copy link
Contributor

Fixes #11125

If the CP route is empty (ie. in headless mode with the CP at the root of the domain) the original request check that disables the default TrimStrings middleware fails. This PR fixes it by assuming all requests are CP requests if the route is empty.

@jasonvarga jasonvarga merged commit 15128bc into statamic:5.x Nov 15, 2024
17 checks passed
@jacksleight jacksleight deleted the fix/bard-inline-no-route branch November 15, 2024 16:59
@jacksleight jacksleight restored the fix/bard-inline-no-route branch November 15, 2024 16:59
@jacksleight jacksleight deleted the fix/bard-inline-no-route branch November 15, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spaces are removed for inline formatting (italics and bold)
2 participants