mailtolink icon indicating copy to clipboard operation
mailtolink copied to clipboard

Missing '?' and '&' characters in query string of output

Open joshbader opened this issue 6 years ago • 8 comments
trafficstars

Missing '?' and '&' characters in query string of output prior clicking the copy button.

joshbader avatar Jan 15 '19 14:01 joshbader

Yeah the formatting is ran when the copy button is clicked. Seemed like an easier solution than listening to key events.

mckeever02 avatar Jan 15 '19 15:01 mckeever02

You could always try throttling or debouncing the keyup event and then run the formate function.

joshbader avatar Jan 15 '19 15:01 joshbader

I identified some bug in my tests: mailto:[email protected][email protected]&?subject=Teste&body=asdasdsadasdasda

insign avatar Mar 07 '19 20:03 insign

@insign Do you remember what order you entered in the form to create the error? I'm having trouble reproducing.

mckeever02 avatar Mar 07 '19 21:03 mckeever02

Let's say that was email, subject, body then cc

insign avatar Mar 07 '19 21:03 insign

@insign Sorry, long delay. Could you try clearing your browser cache/a different browser? I've tried to replicate this and can't.

mckeever02 avatar Mar 13 '19 10:03 mckeever02

@mckeever02 if the form is filled in order below, there is an extra ? before body like : ...&?body=... in the query!

email -> body -> subject

mhsattarian avatar Apr 26 '20 12:04 mhsattarian

I've forked the project at https://github.com/uncenter/mailtolink and fixed this issue, FYI.

uncenter avatar Jan 17 '24 22:01 uncenter