11 ms·
Great little tool, but please don't force me to type https:// https:// and just add it automatically when I type something like example.com
by FinnKuhn 2y ago
Great little tool, but please don't force me to type https:// https:// and just add it automatically when I type something like example.com
- inquirerGeneral 2y ago[dead]
- klabb3 2y agoAnother suggestion is to use input with type=“url”. This makes mobile keyboards not capitalize and auto correct (I think).
- jakub_g 2y agoTIL! https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in...
- 9dev 2y agoI thought that one was unable to handle domains without a protocol, which makes it pretty much useless for normal business cases. I’ve never met a single non-technical person that understood what that https was, why they should add it, or didn’t get immeasurably bored if you tried to explain it…
- TheIndieBuilder 2y agoTo be fair, even Tim Berners Lee doesn't understand what the :// is for and has apologised for adding it.
- 9dev 2y agoWhich would be even more of a reason to standardise an input field that handles web addresses as humans enter them, not machines prefer them. Yet, here we are.
- klabb3 2y agoI think you’d just prefill with https:// https:// and let the user type the rest.
- 9dev 2y agoDepending on how your forms are set up, this will cause the field to be marked as invalid as soon as the user interacts with any of the forms fields, if not on load. Also, this requires additional handling for copy paste etc.
- knallfrosch 2y ago> I thought that one was unable to handle domains without a protocol Check if the protocol is included and add if necessary
- 9dev 2y agoNo, that doesn’t work. Since the browser validates the field, it is marked as invalid unless there’s a protocol present. So you’re back to using the text field, but loose out on input optimisations for URLs.
- fayazara 2y agoYep, I'll fix it. Fking annoying
- FinnKuhn 2y agoThank you :D