Defect #1346
Link to PDF doesn't work after creating new issue
| Status: | Closed | Start date: | 2008-06-02 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | Issues | |||
| 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).
History
#1 Updated by Jean-Philippe Lang almost 5 years ago
- Category set to Issues
- Status changed from New to Closed
- Target version set to 0.7.2
- Resolution set to Fixed
Fixed in r1484. Thanks.
