Skip to content

[BUG] Search keyword disappears when switching to hashtag search #355

Description

@thecoffeebin

Describe the bug

When a user searches for a text string (for example, cat) and then immediately changes the search to a hashtag/category (for example, #setup) without first clearing the search field, the original text search remains active internally but is no longer visible in the UI.

As a result, the search is effectively performed using both filters (cat + #setup), while the search bar only shows the hashtag/category search. The only indication that the text filter is still applied is in the URL, e.g.:

https://bytestash.example.com/?search=cat&categories=setup

This makes it difficult to understand why results are being filtered and prevents users from easily modifying or removing the active text search.

To Reproduce
Steps to reproduce the behavior:

  1. Enter cat in the search bar.
  2. Wait for the results to update.
  3. Select/highlight the text cat in the search field (do not delete it).
  4. Immediately type #setup.

Actual behavior

  • The text search (cat) remains active.
  • The category filter (setup) is also applied.
  • The search bar no longer displays the active text search.
  • The active text filter is only visible in the URL.

Expected behavior

The search bar should always reflect the currently active search criteria.

If the text search remains active, it should remain visible in the search field so users can easily refine or remove it. The UI should not hide active search terms that continue to affect filtering.

Screenshots

Image

Platform
Debian 13 for backend installation and Chrome as browser

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions