From 07b19e3a7c57a1717699b885e9d7333789dbda2d Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Mon, 20 Apr 2026 10:46:03 +0530 Subject: [PATCH] feat: update search query to include location filtering when no specific location is provided --- src/app/(user)/user/profiles/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/(user)/user/profiles/page.tsx b/src/app/(user)/user/profiles/page.tsx index 71a670f..2499344 100644 --- a/src/app/(user)/user/profiles/page.tsx +++ b/src/app/(user)/user/profiles/page.tsx @@ -484,9 +484,13 @@ function ProfilesPageContent() { sortOrder: 'desc', }; - // Add search query + // Add search query — also applies to location (city/state/country/service_areas) + // so single input matches across name + location fields (backend ORs them). if (searchQuery) { params.search = searchQuery; + if (!locationFromUrl) { + params.location = searchQuery; + } } // Add agent type filter