Skip to content

Commit 598fae0

Browse files
committed
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
1 parent d9b2b48 commit 598fae0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/dokploy/components/dashboard/requests/requests-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const RequestsTable = ({ dateRange }: RequestsTableProps) => {
185185
<div className="flex flex-col gap-4 w-full overflow-auto">
186186
<div className="flex items-center gap-2 max-sm:flex-wrap">
187187
<Input
188-
placeholder="Filter by name..."
188+
placeholder="Filter by hostname..."
189189
value={search}
190190
onChange={(event) => setSearch(event.target.value)}
191191
className="md:max-w-sm"

packages/server/src/utils/access-log/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function parseRawConfig(
120120

121121
if (search) {
122122
parsedLogs = parsedLogs.filter((log) =>
123-
log.RequestPath.toLowerCase().includes(search.toLowerCase()),
123+
log.RequestHost.toLowerCase().includes(search.toLowerCase()),
124124
);
125125
}
126126

0 commit comments

Comments
 (0)