Skip to content

Commit 79c1fa8

Browse files
branczclaude
andauthored
Fix: Add URL encoding for starts_with and not_starts_with filters (#6077)
The MATCH_MAP was missing entries for the new filter types, causing 'undefined' to appear in the URL when these filters were applied. Added mappings: - starts_with: '^' (regex-style start anchor) - not_starts_with: '!^' (negated start anchor) Co-authored-by: Claude <[email protected]>
1 parent 78def48 commit 79c1fa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/packages/shared/profile/src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const MATCH_MAP: Record<string, string> = {
3939
not_equal: '!=',
4040
contains: '~',
4141
not_contains: '!~',
42+
starts_with: '^',
43+
not_starts_with: '!^',
4244
};
4345

4446
// Reverse mappings for decoding

0 commit comments

Comments
 (0)