Modify ↓
#5898 closed defect (worksforme)
Wrong req.redirect in process_admin_request
| Reported by: | Owned by: | Christopher Lenz | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | admin/web | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | Thijs Triemstra | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal 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:
instead of
http://host/trac/project/admin/cat/page
(so the "trac/project" part is missing).
Attachments (0)
Change History (3)
follow-up: 2 comment:1 by , 18 years ago
| Keywords: | verify added |
|---|---|
| Milestone: | 0.11 → not applicable |
comment:2 by , 15 years ago
| Cc: | added |
|---|---|
| Keywords: | verify removed |
| Resolution: | → worksforme |
| Status: | new → closed |
Replying to cboos:
Anyway, the redirect should do
req.redirect(req.href.admin(cat, page))(req.href, notself.env) and that's what the admin module does in the trunk.
Closing it in that case.
comment:3 by , 15 years ago
| Milestone: | not applicable |
|---|
Note:
See TracTickets
for help on using tickets.



This is related to the
[trac] base_urlsetting which is missing, see #5064.Anyway, the redirect should do
req.redirect(req.href.admin(cat, page))(req.href, notself.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.