WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 14 months ago

#18353 closed defect (bug) (wontfix)

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

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)

comment:1 nacin2 years ago

  • Keywords reporter-feedback added

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

comment:2 nacin2 years ago

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

comment:3 SergeyBiryukov14 months 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.