Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2242 (closed defect: invalid)

Opened 10 years ago

Last modified 10 years ago

Redirecting to an index page

Reported by: pitrou Owned by:
Priority: normal Milestone: 2.0rc1
Component: TurboGears Version: 2.0b5
Severity: normal Keywords:


If I have a controller named "group", and inside a method of that controller I do the following:

raise redirect("index")

The redirection will happen to /group/index. It would be nice if TurboGears redirected to /group instead (otherwise relative URLs in the HTML code get broken).

Change History

comment:1 Changed 10 years ago by chrisz

Why don't you just redirect("./") or redirect("/group/")?

comment:2 Changed 10 years ago by pitrou

  • Status changed from new to closed
  • Resolution set to invalid

Hmm, I hadn't thought redirect("./") could work. Sorry for the noise then.

Note: See TracTickets for help on using tickets.