Ticket #1732 (closed defect: fixed)
FeedController should pass query parameters when redirecting from index() to the default feed controller
| Reported by: | kikidonk | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | TurboGears | Version: | 1.0.4.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
If i call /feed/?foo=bar on the feed controller, it fails if strict parameters are set, but also fail to pass the query arguments to the default feed controller.
in feed/feed.py, line 45 reads:
def index(self):
raise cherrypy.HTTPRedirect(turbogears.url("%s" % self.default))
index = turbogears.expose()(index)
It should be replaced by:
def index(self, **kwargs):
raise cherrypy.HTTPRedirect(turbogears.url("%s" % self.default, **kwargs))
index = turbogears.expose()(index)
So that a call to /feed/?foo=bar is handled as expected by the default feed handler, with the queyr params.
Change History
Note: See
TracTickets for help on using
tickets.