Opened 22 months ago

Closed 3 months ago

#18353 closed defect (bug) (wontfix)

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

Reported by: sivann Owned by:
Priority: normal Milestone:
Component: Feeds Version: 2.5
Severity: normal Keywords: reporter-feedback
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)

  • Keywords reporter-feedback added

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

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

  • 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.