[wp-trac] [WordPress Trac] #23453: Absolute path added to same page anchor tag links
WordPress Trac
noreply at wordpress.org
Wed Feb 20 03:42:34 UTC 2013
#23453: Absolute path added to same page anchor tag links
-------------------------------+------------------------------
Reporter: angio | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.5.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: 2nd-opinion => reporter-feedback
Comment:
> the rendered HTML includes the absolute path plus the hash tag.
Could not reproduce. My steps:
1. Created a new Multisite install (in subdirectory mode).
2. Pasted this into a new post: `<a href="#test">test</a>`.
3. Published the post, viewed in on the front-end.
4. Viewed the page source. The link is unchanged: `<a
href="#test">test</a>`.
Replying to [comment:1 angio]:
> when I open a link as in <a href="#test"> it add's the entire permalink
of the page before the # including a trailing slash so the link appears as
http://www.example.com/page-name/#test
That's standard browser behaviour for relative links. The URL is added by
browser, not by !WordPress.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23453#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list