[wp-trac] [WordPress Trac] #18149: Removing "http://" in Insert/edit link causes incorrect URL

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 17 19:26:32 UTC 2011


#18149: Removing "http://" in Insert/edit link causes incorrect URL
----------------------------+-----------------------
 Reporter:  itsalltech1     |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+-----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 itsalltech1]:
 > If you delete the http:// part in your web browser, does the URL still
 work? Last time I checked, yes, it does. And what if a writer copy+pastes
 that URL without an http:// into the editor? What happens in that case?

 Note that links without `http://` are relative, so even if `wp-admin` is
 not prepended in the Insert/edit link box, that same link on the front-end
 will look like this:
 {{{
 http://mysite.com/2011/07/sample-post/www.google.com
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18149#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list