# Bug OP-16250 - Trailing ' in journal diff parameter activity_page breaks page

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.1.0 |
| Observed in versions | 15.0.0 |
| Sprint | 15.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.0.x |
| 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 | Jens Ulferts |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Unclear how to do it from inside the application

2.  It is possible to recreate it by calling something like `/journals/[SOME ID OF A VALID JOURNL WITH A DESCRIPTION DIFF/diff/description?activity_page=work_packages/[ID OF THE WORK PACKAGE WITH THE JOURNAL DIFF]'`(The trailing ' is important)
    
    1.  The ids can be gathered by creating a work package and then changing the description (mind the journal aggregation). By picking the id of the work package and the id of the journal by hovering over the link in " **Description** changed (Details)"

### What is the buggy behavior?

  - The page breaks

### What is the expected behavior?

  - The diff should be displayed with a correct 'Back' Button at the bottom

### **Logs**

Reported on App-Signal: <https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/273>
