Defect #1346
Link to PDF doesn't work after creating new issue
| Status: | Closed | Start: | 2008-06-02 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | Tickets | |||
| Target version: | 0.7.2 | |||
| Affected version: | devel |
Resolution: | Fixed |
|
Description
After creating a new issue I get redirected to the issue's page.
The URL of the page ends with "/issues/show?id=xxx" like in:
http://demo.redmine.org/projects/sandbox/issues/show?id=604
When I try to download the issue as PDF I get an error 404 because the PDF download URL is:
http://demo.redmine.org/projects/sandbox/issues/show?format=pdf
I'd suggest that the redirect_to in IssuesController#new should omit the project_id so that Rails can build the URL without using the explicit parameter id=xxx but rather the default :controller/:action/:id like in:
http://demo.redmine.org/issues/show/604
Please see the attached patch.
Associated revisions
Fixed: Link to PDF doesn't work after creating new issue (#1346).