# Bug OP-11684 - Messy rendering of webhook show page

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.4.2 |
| Observed in versions |  |
| Sprint | 12.4.2 |
| 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

### Steps to reproduce

1.  In Administration -&gt; API and webhooks -&gt; Webhooks, create a new webhook with:
    *   Name: Example
    *   Payload URL: [https://example.com](https://example.com/)
    *   Enabled: checked
    *   Work packages
        *   Updated: checked
        *   Created: checked
2.  Create a work package to trigger a webhook delivery to https://example.com
3.  You can also update the work package, or create more work packages
4.  Go back to the webhooks administration page, and click on the webhook name to open its page and look at recent deliveries

### What is the buggy behavior?

*   The page is not rendered properly

### What is the expected behavior?

1.  The page should render properly

The messy rendering comes from the response from the payload URL not being escaped. As the response is HTML, it interferes with the HTML from the page. The response is supposed to be json in most cases.

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/42815/content">

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [x] Other (please specify)
    *   [x] qa edge

**OpenProject version**

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-p op-uc-table--cell">multitenancy-trials1.openproject-edge.com</td><td class="op-uc-p op-uc-table--cell">12.5.0.f586594346</td><td class="op-uc-p op-uc-table--cell">Wed, 14 Dec 2022 08:45:42 GMT <a class="op-uc-link" href="https://github.com/opf/saas-openproject/commit/f586594346">f586594346</a></td></tr></tbody></table></figure>

**Browser**

*   [ ] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)
