Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 14 months ago

#3192 closed defect (bug) (fixed)

We should correct relative links in WYSIWYG link popup

Reported by: matt's profile matt Owned by: skeltoac's profile skeltoac
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: wysiwyg linking tinymce usability
Focuses: Cc:

Description

I've seen a pretty common error. People use the link popup and type in something like:

www.example.com

Which because they forgot the HTTP generally points to:

http://www.example.com/www.example.com

Because of the way WP does permalinks, it is extremely unlikely anyone will ever do a relative link in a post.

Suggested fix: When a link doesn't start with "http://" or "/" then preface the link with "http://" when closing the link popup.

Alternate: Prepopulate the link popup input form with "http://" like we do in the links manager.

Change History (2)

#1 @tedfox
18 years ago

related to 2579 and closed in 4577?

#2 @matt
18 years ago

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

Yep, this should be pretty much fixed by pre-populating the http:// in the box. That's a simpler solution anyway! Less code = better.

Note: See TracTickets for help on using tickets.