Instant Search: Selecting sort order "Sort by latest" in WooCommerce makes the Instant Search modal appear
Impacted plugin
Jetpack, Search, None / Other
Steps to Reproduce
- Have Jetpack Instant Search active and WooCommerce with any product/category
- Navigate to a WooCommerce category archive
- Select sorting order "Sort by latest" (so
?orderby=dategets applied to the URL) - Jetpack Instant Search modal appears without a search query
Alternatively, navigate to any page on a site with Jetpack Instant Search active and append ?orderby=date to the URL, and the Jetpack Instant Search modal appears without a search query.
A clear and concise description of what you expected to happen.
Not expecting the Instant Search modal to appear at all.
What actually happened
The Instant Search modal appears with an empty search query and the sorting set to "Newest".
Other information
Jetpack version 10.9.1 Tested on WordPress.com blogs and self-hosted sites.
Jetpack Search Options: Default Sort: Relevance (recommended) Overlay trigger: Open when results are available Excluded Post types: Media Additional settings: Show sort selector: True Enable infinite scroll: True Show "Powered by Jetpack": True
Please let me know if it can be helpful with any more information.

Operating System
macOS, iOS
OS Version
Monterey 12.3.1 (21E258), iOS 15.4.1 (19E258)
Browser
Chrome/Chromium, Firefox, Safari
Browser Version(s)
Chrome (101.0.4951.64), Firefox (100.0.2), Safari 15.4 (17613.1.17.1.13)
Playing around with the different settings for the Jetpack Search Options, I noticed that if you select Newest first as the Default sort, it prevents the Search Modal from appearing when selecting Sort by latest.
Switching back to Relevance (recommend) the problem reappears.
Thanks for alerting us to this @stronenv! It has been fixed in #24576, which will go out in our next release.
Great! Thanks for the quick turnaround @bluefuton!