Make WordPress Core

Opened 20 years ago

Closed 19 years ago

#2579 closed defect (bug) (fixed)

No default for links in WYSWYG

Reported by: matt's profile matt Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

The links popup in the WYSIWYG should have http:// in there by default, because it is very common for people to put in 'www.example.com' and then wonder why all their links go to their own site.

Attachments (1)

default-http.diff (655 bytes) - added by andy 19 years ago.

Download all attachments as: .zip

Change History (7)

#1 @abhay
20 years ago

I think that putting in http:// is a bit limited. I think a notice on the textbox's caption saying that the user should put in a complete URI should suffice as links can be of any kind of resource (http, ftp, irc, etc.).

#2 @matt
20 years ago

http:// is going to be the case 99.9% of the time, and people who link to things other than http aren't the same people who need this help.

#3 @MichaelH
20 years ago

abhay's comment reminded me that if http:// is put there as the default, it should be 'selected' (like it is in the link Quicktag).

#4 @davidhouse
20 years ago

How about just prepending http:// to the URL if the first section of the URL (everything up to the first /) contains a '.' followed by a TLD? If someone types in https://something/etc we can just leave it as it is.

@andy
19 years ago

#5 @andy
19 years ago

  • Keywords has-patch added

Attached patch to insert 'http://' for new links.

#6 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4597]) Pre-fill http:// when inserting new links. Props andy. fixes #2579

Note: See TracTickets for help on using tickets.