# Bug OP-4542 - Correction of bug #24960 is incomplete and causes a regression

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-4542

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 8.3.0 |
| Observed in versions |  |
| Sprint | 8.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Hi,

The correction of bug <mention class="mention" data-id="24960" data-type="work_package" data-text="#24960">#24960</mention> is incomplete because it does not solve the problem when clicking on the “(diff)” link at the right of the file name. To solve that issue, my patch modifies “config/routes.rb”.

Moreover, exporting in unified diff does not work anymore because the link is “/projects/\<project\_id\>/repository/revisions/<rev>/diff\</path/to/file\>.diff” and it should be “/projects/\<project\_id\>/repository/revisions/<rev>/diff.diff?path=\<path/to/file\>”. I did a correction in “app/views/repositories/diff.html.erb” in my patch.

Best regards,

Nicolas Salguero.
