Automattic / Automattic/jetpack
Instant Search: Better handling of paths/breadcrumbs in results
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Jetpack, Search
### What
Search should detect the permalink style and hide paths/breadcrumbs as appropriate.
### How
If the user has Plain permalinks set, we get this in our search results:

To Reproduce:
1. Update the Permalink style to Plain.
2. Re-sync your site to get the index updated. See WordPress.com → Settings → General → Manage Connection.
3. Visit the overlay — `/?s=&result_format=minimal`
4. Confirm you can see the `?p=1` formatted permalinks in the results.
Ideally, Search would detect the permalink style and omit the HTML for this.
Contributor guide
Research direction
Start with the listed reproduction steps using Plain permalinks, re-sync the site, and open the overlay at `/?s=&result_format=minimal`. Compare the result URLs and visible paths or breadcrumbs with the expected behavior. Done means Search detects the permalink style and omits the HTML for paths or breadcrumbs when Plain permalinks are used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100