# Bug DOC-77 - Relative URL installations with Docker broken

Project: Docker
Status: closed
URL: https://community.openproject.org/work_packages/DOC-77

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 11.1.2 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |

## Description

### **Environment**:

Your OpenProject Version: 11.1 / Docker Version

Synology DS 918+  / Firefox 84.0.1  / OpenProject language: German

I use a nginx on my ds918+ to map my url and domains. Furthermore I try to use Openproject in a subdirectory. The docker configuration is default except for 2 parameters which I added for the subdiretory solution. I followed this documentation. <https://docs.openproject.org/installation-and-operations/installation/docker/> 

My added docker parameters are:

``` docker
OPENPROJECT_RAILS__RELATIVE__URL__ROOT = /pm
OPENPROJECT_RAILS__FORCE__SSL = true
```

My nginx config:

``` nginx
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name ds.example.com;

    #----- OpenProject  ---- #
    location /pm/ {

        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto https;

        proxy_pass http://localhost:32796/pm/;


    }
```

### 

### **Actual Behavior**

So, I can excess my OpenProject with the url <https://ds.example.com/pm>  
I can login and navigate. But one JS File looks wrong.  
The generated URL looks like: <https://ds.example.com/pm/project%20/project/pm/pm/assets/frontend/168.8dc00e2095c8cc1479c8.js>

### **Expected Behavior**

If I cut the url to: <https://ds.example.com/pm/assets/frontend/168.8dc00e2095c8cc1479c8.js> the file is found an loaded.

Unfortunately I don't know if the nginx config is wrong or maybe there is a bug here.
