Currently, our website only supports the http(s) protocol. However, in some scenarios, users need to share other protocols/schemes such as tg://, viber:// and ... .
To accommodate this, we should allow users to share any protocol/scheme link they want.
Currently, our website only supports the
http(s)
protocol. However, in some scenarios, users need to share other protocols/schemes such astg://
,viber://
and ... . To accommodate this, we should allow users to share any protocol/scheme link they want.Example:
<a href="mailto:?subject=&body=tg://msg?text = www.example.com?t=12" 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>
My suggestions:
Remove validation on
URL
and also we can rename it to something likeBody
!Create validation rules that can accommodate various protocols/schemes