[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:48:48 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 itsalltech1):
Replying to [comment:7 azaozz]:
> Replying to [comment:3 nacin]:
> > Looks like this is the issue of browser DOM behavior:
>
> Correct, and it depends on the browser used. I'll see if there's a way
to avoid this.
>
> Replying to [comment:4 itsalltech1]:
> > If you delete the http:// part in your web browser, does the URL still
work?
>
> You mean in the browser URL/search bar? Entering a link in HTML document
is different from pasting it in the browser search bar. If you enter
partial link in a hand written HTML document would you expect it to work?
That's why we have the `http://` pre-filled in there.
In the address bar of a web browser, the page will load without using
"http://" Some web browsers will add in http:// for you if you didn't put
it in, others (for example, Chrome), will remove http:// from web
addresses automatically. If you're using Chrome and copy+paste a URL from
the address bar to the insert link in WordPress, the http:// won't be
included - you would have to type it in by yourself.
What I suggest is: make it so that you can't remove the http:// from the
link editor. If you copy+paste a link that includes http://, remove it
since WordPress already has that. Or, make it so that "http://" is not
highlighted automatically when entering the link editor. Or, just fix the
bug directly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18149#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list