# Bug OP-14208 - OpenProject behind prefix some assests still loaded from web root 

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.1.0 |
| Observed in versions | 13.2.0 |
| Sprint | 14.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.2.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 | Dominic Bräunlein |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

#### Package installation

1.  Setup OpenProject behind prefix with the installation wizard (sudo openproject configure)
2.  Login as Admin
3.  Got a Project and try to create a Board
4.  Open debug console of Browser to check loaded assets
5.  refresh page
6.  The Images a loaded from web root instead of the server prefix

Example: **/assets/frontend/assets/images/board\_creation\_modal/lists.svg** instead of **/op2/assets/frontend/assets/images/board\_creation\_modal/lists.svg** (look at screenshot)

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

#### Docker compose installation

1.  Setup openproject with following command: **SERVER\_PATH\_PREFIX=/op/ OPENPROJECT\_HTTPS=false OPENPROJECT\_RAILS\_\_RELATIVE\_\_URL\_\_ROOT=/op docker-compose up**
2.  Login as admin
3.  Got a Project and try to create a Board
4.  Images are not shown at all

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

### What is the buggy behavior?

  - assets are loaded without prefix
  - in case of docker assets can't be loaded at all

### What is the expected behavior?

1.  Assets are loaded from the prefix instead of web root

### Environment information

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation
    - Tested on Debian but should effect all
- [x] Docker All-in-one container (not tested but should be the same as for compose here)
- [x] Docker-compose installation
- [ ] Other (please specify)
