From 598fae0e92e5bd9941f78170d26ac6b6a088e9cc Mon Sep 17 00:00:00 2001 From: manalkaff Date: Sun, 19 Apr 2026 17:30:42 +0800 Subject: [PATCH] fix: filter requests by hostname instead of path The search filter on the Requests tab was incorrectly filtering by RequestPath instead of RequestHost, causing "filter by name" to match URL paths rather than hostnames. Updated the placeholder text to reflect the correct field being searched. Fixes #4249 --- apps/dokploy/components/dashboard/requests/requests-table.tsx | 2 +- packages/server/src/utils/access-log/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/requests/requests-table.tsx b/apps/dokploy/components/dashboard/requests/requests-table.tsx index e804b065bd..6f7406e195 100644 --- a/apps/dokploy/components/dashboard/requests/requests-table.tsx +++ b/apps/dokploy/components/dashboard/requests/requests-table.tsx @@ -185,7 +185,7 @@ export const RequestsTable = ({ dateRange }: RequestsTableProps) => {
setSearch(event.target.value)} className="md:max-w-sm" diff --git a/packages/server/src/utils/access-log/utils.ts b/packages/server/src/utils/access-log/utils.ts index b89dc2ed2d..9b472ee27d 100644 --- a/packages/server/src/utils/access-log/utils.ts +++ b/packages/server/src/utils/access-log/utils.ts @@ -120,7 +120,7 @@ export function parseRawConfig( if (search) { parsedLogs = parsedLogs.filter((log) => - log.RequestPath.toLowerCase().includes(search.toLowerCase()), + log.RequestHost.toLowerCase().includes(search.toLowerCase()), ); }