Modify ↓
#1562 closed defect (fixed)
Link problem for reports with dynamic variables
| Reported by: | Owned by: | daniel | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9 |
| Component: | report system | Version: | 0.9b2 |
| Severity: | major | Keywords: | |
| Cc: | trac-form@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Links given as:
[report:123?MYVAR=myvalue My Report]
result in all of the links on the generated report consisting of things like:
http://...../report/123?MYVAR=myvalue/ticket/345
As of Revision 1677.
Attachments (1)
Change History (9)
comment:1 by , 21 years ago
comment:2 by , 20 years ago
| Milestone: | → 0.9 |
|---|---|
| Version: | devel → 0.9b2 |
comment:4 by , 20 years ago
I'm not sure whether this patch is correctly implemented, but it works: eg. http://trac-hacks.swapoff.org/wiki/TocMacro
comment:5 by , 20 years ago
| Cc: | added |
|---|
comment:6 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Applied patch in [2322]. Well, except for the part that removed the report shorthand syntax ;-)
Note:
See TracTickets
for help on using tickets.



It appears to do this because the link:
generates the href:
instead of:
This confuses Apache into believing that the OS environment variable
SCRIPT_NAMEis the same asREQUEST_URI, rather than being the URL of the Trac project. Obviously the solution is to stop the GET request parameters being encoded.