Automattic / Automattic/jetpack

Search: Non-pretty permalinks in Search redirecting to homepage

Open
#23,935 6 comments 0 reactions 0 assignees View on GitHub
[Feature] Search [Package] Search [Plugin] Search [Pri] Low Bug Customer Report [LEGACY] Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Search

### Steps to Reproduce

1. Create New WordPress site
2. Set Permalinks to "Plain" (i.e. `?p=123`)
3. Add a few test posts / pages
4. Install and connect Jetpack
5. Add Jetpack Search plan
6. Run a test search
7. Links to pages with `?p=` strings will redirect to homepage
8. Switch to Pretty Permalinks
9. Run a test search
10. Links will redirect to proper pages

### A clear and concise description of what you expected to happen.

I expect that Jetpack Search would support non-pretty permalinks

### What actually happened

Non-pretty permalinks all redirect to homepage

### Other information

### With non-pretty permalinks

Screenshot on 2022-04-13 at 14-22-41

### With pretty permalinks

![Annotation on 2022-04-13 at 14-13-33](https://user-images.githubusercontent.com/45246438/163245307-3c2cf6c3-415e-4ad1-a2e9-4fccda0cb171.png)

This behavior can also be triggered by switching to non-pretty permalinks from pretty permalinks

### Operating System

macOS

### OS Version

_No response_

### Browser

Firefox

### Browser Version(s)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.