Defect #1346

Link to PDF doesn't work after creating new issue

Added by Thomas Löber 87 days ago. Updated 86 days ago.

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.

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

Associated revisions

Revision 1484
Added by jplang 86 days ago

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

History

2008-06-02 18:57 - Jean-Philippe Lang

  • Category set to Tickets
  • 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