diff --git a/app/javascript/retrospring/features/inbox/author.ts b/app/javascript/retrospring/features/inbox/author.ts index 17a77106..456b0ed5 100644 --- a/app/javascript/retrospring/features/inbox/author.ts +++ b/app/javascript/retrospring/features/inbox/author.ts @@ -2,5 +2,5 @@ export function authorSearchHandler(event: Event): void { event.preventDefault(); const author = document.querySelector('#author')?.value; - window.location.href = `/inbox/${author}`; + window.location.href = `/inbox/${encodeURIComponent(author)}`; } \ No newline at end of file