Thread Tools Display Modes
11-28-16, 04:03 AM   #1
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-28-16, 11:45 AM   #2
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,339
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?

  Reply With Quote
11-29-16, 09:25 AM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
11-29-16, 04:47 PM   #4
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
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://".
  Reply With Quote
12-04-16, 06:59 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Site Forums » Site help, bugs, suggestions/questions » Insert Link popup shouldn't include http prefix

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off