Make WordPress Core

Opened 10 years ago

Closed 8 years ago

#18353 closed defect (bug) (wontfix)

consider $_SERVER['REDIRECT_URL'] in self_link()

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

Description (last modified by SergeyBiryukov)

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 $_SERVER['REDIRECT_URL'] if it exists instead of REQUEST_URI in feed.php, function self_link()

Change History (3)

#1 @nacin
10 years ago

  • Keywords reporter-feedback added

How so? Why is /en/feed and /el/feed being redirected, rather than served?

#2 @nacin
10 years ago

This doesn't seem like it makes sense for canonical reasons either.

#3 @SergeyBiryukov
8 years ago

  • Component changed from General to Feeds
  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version changed from 3.2.1 to 2.5

[23521] made self_link() filterable.

Note: See TracTickets for help on using tickets.