Project

General

Profile

Actions

Defect #1346

closed

Link to PDF doesn't work after creating new issue

Added by Thomas Löber almost 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
Start date:
2008-06-02
Due date:
% Done:

0%

Estimated time:
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.


Files

Actions #1

Updated by Jean-Philippe Lang almost 16 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.

Actions

Also available in: Atom PDF