[wp-trac] [WordPress Trac] #18149: Removing "http://" in Insert/edit link causes incorrect URL
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 15:41:23 UTC 2011
#18149: Removing "http://" in Insert/edit link causes incorrect URL
-------------------------------------------------+-------------------------
Reporter: itsalltech1 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.3
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: reporter-feedback dev-feedback has- |
patch |
-------------------------------------------------+-------------------------
Comment (by WraithKenny):
Just as a note: in Chrome, when copying "www.site.com" from the address
bar, the paste will contain "http://" it's just visibly hidden in the
browser.
'''Patch works as expected.'''
Please see http://dev.kenpress.org/2011/07/link-testing/ for a thorough
test and results.
Patch does fix the bug nacin pointed out (changing original values). I
haven't encountered problems switching between the Visual Editor and HTML.
'''itsalltech1:''' I not sure I understand your issue.
1. It '''sounds''' like you want `<a href="www.example.com">Example
Site</a>` to work in WP, HTML, and the browser, but it's still an error in
all 3. The `href="www.example.com"` part is '''always wrong''' unless you
intend to link to a directory named `www.example.com` on your own site.
2. But perhaps you mean `<a
href="http://www.example.com">www.example.com</a>` to work, in which case
(and any case), That does currently work.
3. I believe what you really want is for WordPress to accept and
recognize `www.example.com` as an external url, and convert that into a
proper external link while still hiding the protocol everywhere in the UI.
This is hard because of the problem of guessing and assuming the user's
intent. Did the user really mean to link to a local folder or not? Taking
the input literally is the best way to go. Having said that, there is UI
feedback for that case: The Link box is pre-populated with `http://` as a
clue that the protocol should be there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18149#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list