# Bug OP-14056 - Built-in API v3 DOC doesn't run REQUESTS (requested URL was not found on this server)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date | 2023-12-26 –  |
| Priority | Low |
| Module |  |
| Target versions | 14.4.0 |
| Observed in versions | 13.1.0 |
| Sprint | 14.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.1.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 | Eric Schubert |
| 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.  Configure the OpenProject inside a **domain subfolder**.  
    Example: <https://192.168.1.300/**subfolder**/> (usually it would be <https://192.168.1.300/>)

2.  Login as a administrator

3.  Go to <https://192.168.1.300/**subfolder**/api/docs/>

4.  Select any request and try to run it (<http://192.168.1.300/subfolder/#?route=post-/api/v3/example/form>  
    <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/85016/content">

### What is the buggy behavior?

  - I get the error 404 requested URL was not found on this server because the API is configured to work based on the server name. My OpenProject was installed in a folder within the domain.  
    <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/85018/content">

  - If I set it to match the subfolder, I'll get the yellow incompatibility banner.  
    <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/85019/content">

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  The API page should work based on the server where OpenProject is running, not what's configured as server name within <http://192.168.1.300/subfolder/admin/settings/general>.

### 

### **Logs**

*Are there errors in the browser console? (*[*Click here for information on how to open your browser's console*](https://webmasters.stackexchange.com/a/77337)*) For a local installation: Are there relevant logs output by* `_openproject logs_` *(packaged installation) (*[*click here for details*](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)*) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable*

### 

### 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

- [x] Packaged installation
  
    - Ubuntu 22.04

- [ ] Docker All-in-one container

- [ ] Docker-compose installation

- [ ] Other (please specify)

**OpenProject version**

*OpenProject v13.1.2*

**Browser**

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

**Language**

*Portuguese*
