Contact details
me@sepand.tech
What happened?
When a link does not have a protocol (for example, www.test.com), MyButton adds http:// at the beginning of the link.
I recommend taking steps to prevent link manipulation.
Steps to reproduce
Input:
- Link: www.test.com
- Title: Test
- Service: Email
Expected behavior
<div>
<a href="mailto:?subject=Test&body=www.test.com" target="_blank"><img src="https://github.com/openscilab/mybutton/raw/main/src/Assets/icons/services/email.svg" width="32" height="32" style="background-color:#888990; border-radius:4px"/></a>
</div>
Actual behavior
<div>
<a href="mailto:?subject=Test&body=http%3A%2F%2Fwww.test.com" target="_blank"><img src="https://github.com/openscilab/mybutton/raw/main/src/Assets/icons/services/email.svg" width="32" height="32" style="background-color:#888990; border-radius:4px"/></a>
</div>
Device type
Desktop
Browser
Chrome
MyButton version
MyButton 0.6
Relevant log output
Contact details
me@sepand.tech
What happened?
When a link does not have a protocol (for example,
www.test.com), MyButton addshttp://at the beginning of the link.I recommend taking steps to prevent link manipulation.
Steps to reproduce
Input:
Expected behavior
Actual behavior
Device type
Desktop
Browser
Chrome
MyButton version
MyButton 0.6
Relevant log output