Skip to content

Commit 4004933

Browse files
fix(web): preserve regex and case sensitivity params in search load-more (#972)
* fix(web): preserve regex and case sensitivity params in search load-more When clicking the "load more results" button in /search, the isRegexEnabled and isCaseSensitivityEnabled query parameters were being dropped. This fix includes these parameters in the URL built by onLoadMoreResults, matching the behavior of the initial search submission. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: update CHANGELOG for #972 --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4483213 commit 4004933

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Added support for using bearer tokens with anthropic. [#967](https://github.com/sourcebot-dev/sourcebot/pull/967)
1313
- Updated to Next.JS 16. [#970](https://github.com/sourcebot-dev/sourcebot/pull/970)
1414

15+
### Fixed
16+
- Preserve regex and case sensitivity query parameters when loading more search results. [#972](https://github.com/sourcebot-dev/sourcebot/pull/972)
17+
1518
## [4.13.1] - 2026-02-28
1619

1720
### Changed

packages/web/src/app/[domain]/search/components/searchResultsPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ export const SearchResultsPage = ({
165165
const url = createPathWithQueryParams(`/${domain}/search`,
166166
[SearchQueryParams.query, searchQuery],
167167
[SearchQueryParams.matches, `${maxMatchCount * 2}`],
168+
[SearchQueryParams.isRegexEnabled, isRegexEnabled ? "true" : null],
169+
[SearchQueryParams.isCaseSensitivityEnabled, isCaseSensitivityEnabled ? "true" : null],
168170
)
169171
router.push(url);
170-
}, [maxMatchCount, router, searchQuery, domain]);
172+
}, [maxMatchCount, router, searchQuery, domain, isRegexEnabled, isCaseSensitivityEnabled]);
171173

172174

173175
return (

0 commit comments

Comments
 (0)