# Blank entry in recent searches

**URL:** https://meta.discourse.org/t/blank-entry-in-recent-searches/263668
**Category:** Bug
**Tags:** search
**Created:** [May 3, 2023, 11:56am UTC](https://meta.discourse.org/t/blank-entry-in-recent-searches/263668 "2023-05-03T11:56:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anon59994034](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon59994034](https://meta.discourse.org/u/anon59994034)
#### Post date: [May 3, 2023, 11:56am UTC](https://meta.discourse.org/t/blank-entry-in-recent-searches/263668/1 "2023-05-03T11:56:55Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/3/6/9/3691c8e57a9b039f9450ff0a50e7779477ce0519.png)

repro steps:

1. search something
2. click the ❎ button in the search box

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 3, 2023, 5:36pm UTC](https://meta.discourse.org/t/blank-entry-in-recent-searches/263668/2 "2023-05-03T17:36:03Z")

</div>

i’ve reproduced this on Meta in Chrome desktop and Safari on iOS desktop view.

1. do a search and view the results list.
2. click the search icon to do another search
3. click the X button

---

<div class="post-metadata">

### Author: ![italo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/italo/32/315833_2.png) [@italo](https://meta.discourse.org/u/italo)
#### Post date: [July 24, 2023, 8:14pm UTC](https://meta.discourse.org/t/blank-entry-in-recent-searches/263668/3 "2023-07-24T20:14:03Z")

</div>

**Priority/Severity** :  
Low.

**Platform** :  
I was able to reproduce this on a personal cloud instance (under [safe mode](https://meta.discourse.org/t/53504?silent=true)) and here on Meta. I’m using Chrome Desktop on Windows 11.

**Description** :  
The clear search action is saving an empty entry on the search history. It does not persist after a reload, so it’s a frontend state bug.

**Reproducible steps** :

1. Do a search
2. Hit return key two times to enter the listing page
3. Open the search bar again, it will have your search keywords already
4. Click the X button to clear
5. An empty entry appears in the recent searches list

Video reproduction:

---

<div class="post-metadata">

### Author: ![pinder99](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pinder99](https://meta.discourse.org/u/pinder99)
#### Post date: [February 15, 2024, 7:05am UTC](https://meta.discourse.org/t/blank-entry-in-recent-searches/263668/4 "2024-02-15T07:05:56Z")

</div>

This is not fixed yet

---

<div class="post-metadata">

### Author: ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)
#### Post date: [February 15, 2024, 6:47pm UTC](https://meta.discourse.org/t/blank-entry-in-recent-searches/263668/6 "2024-02-15T18:47:38Z")

</div>

This will be fixed by

[https://github.com/discourse/discourse/pull/25704](https://github.com/discourse/discourse/pull/25704)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 19, 2024, 1:00pm UTC](https://meta.discourse.org/t/blank-entry-in-recent-searches/263668/8 "2024-02-19T13:00:51Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
