Wrong comments feed link advertised with static front page
|Reported by:||mdgl||Owned by:|
Description (last modified by Denis-de-Bernardy)
A static's front page's comments feed is:
But automatic_feed_links() advertises it as:
When a static front page is configured (e.g. for a CMS site), the wrong feed links are advertised since the URL for the "page comments" feed conflicts with the default feed URL.
Consider the following configuration:
Front page: "Home" (http://www.site.com/)
Blog home: "Blog" (http://www.site.com/blog)
By default (core, no theme), the front page then advertises a "Home Comments Feed" for the URL "http://www.site.com/feed/" but in fact this returns the feed for the site blog (default feed), not the comments on the "Home" page as stated. No feed is advertised from the blog home page at all.
Enabling the extra feed links using "automatic_feed_links()" in the theme (as happens with Kubrick, for example) causes two additional feeds to be advertised from *every* page of the site (for site blog and comments). The front page then advertises three feed links "Feed", "Comments Feed" and "Home Comments Feed" which return the site blog, site comments and (duplicate/incorrect) site blog feeds respectively.
I believe the following behaviour should be observed:
b) Automatic links to the site blog and site comments should *not* be added to every page, because these are not really "alternate" versions of the page being viewed as the link headers so claim (we should preserve the semantics of HTML where possible). Agreed the core does not do this, but the default theme Kubrick does.
c) Ideally, feeds for the whole site should be distinguished from those for the blog (i.e. not including changes and comments to pages in the blog feed), but that is probably a rather larger issue!
Change History (6)
- Keywords 2nd-opinion added
- Type changed from defect (bug) to enhancement
- Description modified (diff)
- Keywords needs-patch added; 2nd-opinion removed
- Milestone changed from Future Release to 3.0
- Summary changed from Wrong feed links advertised with static front page to Wrong comments feed link advertised with static front page
- Type changed from enhancement to defect (bug)