WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#18353 closed defect (bug)

consider $_SERVER['REDIRECT_URL'] in self_link() — at Initial Version

Reported by: sivann Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Feeds Keywords: reporter-feedback
Focuses: Cc:

Description

When using feed redirections such as a qtranslate which differentiates feeds between example.com/el/feed and example.com/en/feed, when going to one of the above URLs, the feed incorrectly has the [...]example.com/feed"[...] href instead of the correct:
<atom:link href="http://www.example.com/el/feed" rel="self" type="application/rss+xml" />

A fix is to use $_SERVERREDIRECT_URL? if it exists instead of REQUEST_URI in feed.php, function self_link()

Change History (0)

Note: See TracTickets for help on using tickets.