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:
- Enter cat in the search bar.
- Wait for the results to update.
- Select/highlight the text cat in the search field (do not delete it).
- 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
Platform
Debian 13 for backend installation and Chrome as browser
Additional context
N/A
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:
Actual behavior
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
Platform
Debian 13 for backend installation and Chrome as browser
Additional context
N/A