Skip to content

Commit

Permalink
Merge pull request #4 from silx-kit/fix-error-report
Browse files Browse the repository at this point in the history
Fix URL encoding of error report for Thunderbird
  • Loading branch information
axelboc authored Apr 18, 2024
2 parents 016dc64 + 5a3ff6c commit fd623d1
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 fd623d1

Please sign in to comment.