chriskthomas / linkfree-generator

A simple, free, open-source, and self-hosted alternative to linktree
https://linkfree.ckt.im
Apache License 2.0
140 stars 28 forks source link

Allow users to submit links without typing https:// #27

Closed hoon610 closed 1 year ago

hoon610 commented 1 year ago

Hi I think it would be a little more user friendly if you could add links without including the https://. Going to work on this by adding JavaScript validation if thats ok

chriskthomas commented 1 year ago

Ok. I think you should add a blur event that will add the protocol if the user omits it.

mwt commented 1 year ago

Ok. I think you should add a blur event that will add the protocol if the user omits it.

Yeah, you could just append "https://" on blur if the validity check fails.

hoon610 commented 1 year ago

Ok. I was making the pull request for the validation and didn't see this. I'll try it with the blur event tomorrow

hoon610 commented 1 year ago

Did not mean to press close with comment