# Bug OP-14763 - Rails.application.routes don't respects  OPENPROJECT_RAILS__RELATIVE__URL__ROOT

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.1.0 |
| Observed in versions | 13.4.0 |
| Sprint | 14.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.4.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 |  |
| 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

### Explanation

  - There is 3 bugs related to prefix
      - <mention class="mention" data-id="52916" data-type="work_package" data-text="##52916">##52916</mention> 
      - <mention class="mention" data-id="53429" data-type="work_package" data-text="##53429">##53429</mention>
      - <mention class="mention" data-id="52292" data-type="work_package" data-text="##52292">##52292</mention> (different kind of fix)
  - The bugs are often fixed by switching from `Rails.application.routes` to `OpenProject::StaticRouting::StaticUrlHelpers.new`.

This fix makes `Rails.application.routes` respect `OPENPROJECT_RAILS__RELATIVE__URL__ROOT` through out the applications

###
