Edgewall Software
Modify

Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#5898 closed defect (worksforme)

Wrong req.redirect in process_admin_request

Reported by: airadier@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/web Version: devel
Severity: normal Keywords:
Cc: Thijs Triemstra Branch:
Release Notes:
API Changes:

Description

When using req.redirect method in process_admin_request, like:

req.redirect(self.env.href.admin(cat, page))

the browser is redirected to:

http://host/admin/cat/page

instead of

http://host/trac/project/admin/cat/page

(so the "trac/project" part is missing).

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 12 years ago

Keywords: verify added
Milestone: 0.11not applicable

This is related to the [trac] base_url setting which is missing, see #5064.

Anyway, the redirect should do req.redirect(req.href.admin(cat, page)) (req.href, not self.env) and that's what the admin module does in the trunk.

The WebAdmin plugin for 0.10 used to (still has?) that problem, though. Needs to be verified and eventually fixed.

in reply to:  1 comment:2 by Thijs Triemstra, 9 years ago

Cc: Thijs Triemstra added
Keywords: verify removed
Resolution: worksforme
Status: newclosed

Replying to cboos:

Anyway, the redirect should do req.redirect(req.href.admin(cat, page)) (req.href, not self.env) and that's what the admin module does in the trunk.

Closing it in that case.

comment:3 by Remy Blank, 9 years ago

Milestone: not applicable

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.