Skip to content

[6.x] Include unpublished entries in the command palette search - #15810

Open
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15807-palette-unpublished
Open

lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15807-palette-unpublished

Conversation

@lazerg

@lazerg lazerg commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

The command palette never finds draft or scheduled entries. You only see an entry there once it's published.

The palette searches the cp index, and the entries searchable adds a whereStatus('published') constraint to every index that has no custom filter, both when building the index and when deciding whether a saved entry belongs in it. That makes sense for frontend indexes, but the palette is for editors, who need to reach unpublished content too. The controller already checks that the user can view each result.

This PR fixes it by skipping the published constraint for the cp index. Other indexes behave the same as before.

Fixes #15807

This branch has not been deployed

No deployments
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.

Command palette doesn’t index non published items

1 participant