Defect #1346

Link to PDF doesn't work after creating new issue

Added by Thomas Löber over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:2008-06-02
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:0.7.2
Resolution:Fixed Affected version:

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.

issues_controller_new_redirect.patch Magnifier (648 Bytes) Thomas Löber, 2008-06-02 10:26

Associated revisions

Revision 1484
Added by Jean-Philippe Lang over 9 years ago

Fixed: Link to PDF doesn't work after creating new issue (#1346).

History

#1 Updated by Jean-Philippe Lang over 9 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.

Also available in: Atom PDF