Automattic / Automattic/jetpack

Instant Search: Better handling of paths/breadcrumbs in results

Open
#25,440 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Search [Package] Search [Plugin] Jetpack [Plugin] Search Enhancement
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:

![PlainPermalinks](https://user-images.githubusercontent.com/40267301/184121052-be4beb92-dd7a-4872-be6b-385c656f179d.png)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.