Skip to content

Commit

Permalink
Fix URL encoding of error report for Thunderbird
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Apr 18, 2024
1 parent 016dc64 commit 5a3ff6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ Thanks,
<< Name >>`;

const params = new URLSearchParams({ subject: `[myHDF5] ${subject}`, body });
return `mailto:[email protected]?${params.toString()}`;
const paramsStr = params.toString().replaceAll('+', '%20'); // use percent encoding for spaces to avoid issues with some email clients

return `mailto:[email protected]?${paramsStr}`;
}

export const FEEDBACK_MESSAGE = `<<
Expand Down

0 comments on commit 5a3ff6c

Please sign in to comment.