From 30b2d7858e6e4d34490c9ccedb2db0c9f8545b83 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Mon, 2 Mar 2026 10:11:49 -0800 Subject: [PATCH 1/2] 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 --- .../src/app/[domain]/search/components/searchResultsPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/web/src/app/[domain]/search/components/searchResultsPage.tsx b/packages/web/src/app/[domain]/search/components/searchResultsPage.tsx index e93609462..a8a7c9139 100644 --- a/packages/web/src/app/[domain]/search/components/searchResultsPage.tsx +++ b/packages/web/src/app/[domain]/search/components/searchResultsPage.tsx @@ -165,9 +165,11 @@ export const SearchResultsPage = ({ const url = createPathWithQueryParams(`/${domain}/search`, [SearchQueryParams.query, searchQuery], [SearchQueryParams.matches, `${maxMatchCount * 2}`], + [SearchQueryParams.isRegexEnabled, isRegexEnabled ? "true" : null], + [SearchQueryParams.isCaseSensitivityEnabled, isCaseSensitivityEnabled ? "true" : null], ) router.push(url); - }, [maxMatchCount, router, searchQuery, domain]); + }, [maxMatchCount, router, searchQuery, domain, isRegexEnabled, isCaseSensitivityEnabled]); return ( From 00478bbf5abe0bc7f00bf413e344bfc522aec83d Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Mon, 2 Mar 2026 10:12:10 -0800 Subject: [PATCH 2/2] chore: update CHANGELOG for #972 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b1a3284b..01646047f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added support for using bearer tokens with anthropic. [#967](https://github.com/sourcebot-dev/sourcebot/pull/967) - Updated to Next.JS 16. [#970](https://github.com/sourcebot-dev/sourcebot/pull/970) +### Fixed +- Preserve regex and case sensitivity query parameters when loading more search results. [#972](https://github.com/sourcebot-dev/sourcebot/pull/972) + ## [4.13.1] - 2026-02-28 ### Changed