Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tommulroy
Copy link
Contributor

Fixes #12703

@jasonvarga
Copy link
Member

This only works if you set sites => ['siteone', 'sitetwo', 'etc'] in your search.php config.

If you do a search in a site that isn't included in that array, you get an exception. That's fine. You probably should be including all the sites.

If you don't have a sites array, the search will continue to show results across sites. Seems correct. 👌

Thanks!

@jasonvarga jasonvarga merged commit 84caba2 into statamic:5.x Oct 10, 2025
25 checks passed
@tommulroy tommulroy deleted the cp-search-fix branch October 11, 2025 02:30
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.

[5.x] Global search doesn't respect selected site in a multi-site setup

2 participants