Skip to content

Commit fff9412

Browse files
committed
URL encode search term
1 parent f1a2a57 commit fff9412

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Layouts/Primary/TopBar/Items/SearchMenu/SearchDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ export const SearchDialog: React.FC<SearchDialogProps> = ({ handleClose }) => {
349349
`And ${contacts.totalCount - contacts.nodes.length} more`,
350350
),
351351
icon: <PeopleIcon />,
352-
link: `/accountLists/${accountListId}/contacts?searchTerm=${wildcardSearch}`,
352+
link: `/accountLists/${accountListId}/contacts?searchTerm=${encodeURIComponent(
353+
wildcardSearch,
354+
)}`,
353355
});
354356
}
355357

0 commit comments

Comments
 (0)