[wp-trac] Re: [WordPress Trac] #9515: feed_link functions should
add a slash before the query when permalink structure is default
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 12 10:25:54 GMT 2009
#9515: feed_link functions should add a slash before the query when permalink
structure is default
----------------------------+-----------------------------------------------
Reporter: peaceablewhale | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: Permalinks | Version: 2.7.1
Severity: normal | Keywords: has-patch dev-feedback
----------------------------+-----------------------------------------------
Comment(by Viper007Bond):
Replying to [comment:10 peaceablewhale]:
> I think the trailing slash is always required:
No it's not. Infact WordPress enforces and will remove the trailing slash
from post URLs if you opt not to have one in your structure at Settings ->
Permalinks. That is the whole purpose of `user_trailingslashit()` (it'll
only add one if your permalink structure has one).
However this may not be the case for the root of your blog. I'm not sure
if the redirect from `http://example.com/blog` to
`http://example.com/blog/` is being done by WordPress or the HTTPD (I
assume the latter).
`get_tag_feed_link()` should definitely include a trailing slash if your
permalink structure has one, but I'm not sure if it should or not if your
structure doesn't.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9515#comment:11>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list