Insert Link popup shouldn't include http prefix
When clicking the "Insert Link" button on the post formatting toolbar, the JavaScript popup that asks for the link URL is pre-populated with "http://" --- but since that text is not pre-selected, it's not overwritten when pasting a URL into the input box. If one isn't paying attention and doesn't manually delete the prefix, the post ends up with a link to "http: // http: // example.com" (spaces added to prevent forum auto-formatting) that doesn't work when clicked.
To solve this, the input popup should not pre-populate with "http://" or any other prefix. If the user enters a URL without a protocol (eg. just "example.com") then one can be added for them in the inserted BBCode after the popup input is submitted. |
I agree that would be annoying. What browser/os are you using? The http is preselected for me on Chrome osx & win10. Wondering if there is some weird js stuff going on with another browser maybe?
|
I'm currently using Vivaldi on Linux Mint (basically Ubuntu). I don't know off the top of my head whether it's pre-selected in Firefox or Opera, the other two browsers installed on my computer, as I usually just type the BBCode. I was only using the buttons the other day because I was eating while posting. :p
|
The other issue with having the default of "http://" is that it could mess up a secure link, such as Curse is using these days. Or you are linking your PayPal. These use "https://".
|
If you have a link that specific, I would think, then you would most likely be pasting it in - no?
It is pre-selected for me as well, in Chrome on Windows 10. |
All times are GMT -6. The time now is 10:04 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI