Content
View differences
Updated by Markus Kahl over 12 years ago
There are a number of redirects defined in `routes.rb` which break when the application is run in a subdirectory.
One example would be the following:
match '/issues(/)' => redirect('/work_packages/')
<ins>Exptected behaviour:</ins>
`GET /subdirectory/issues` =\> `302 /subdirectory/work_packages`
<ins>Actual behaviour:</ins>
`GET /subdirectory/issues` =\> `302 /work_packages`
<ins>Fix:</ins>
The redirect paths have to include `OpenProject::Configration["rails_relative_url_root"]`.
PR 873:“https://github.com/opf/openproject/pull/873”
One example would be the following:
match '/issues(/)' => redirect('/work_packages/')
<ins>Exptected behaviour:</ins>
`GET /subdirectory/issues` =\> `302 /subdirectory/work_packages`
<ins>Actual behaviour:</ins>
`GET /subdirectory/issues` =\> `302 /work_packages`
<ins>Fix:</ins>
The redirect paths have to include `OpenProject::Configration["rails_relative_url_root"]`.
PR 873:“https://github.com/opf/openproject/pull/873”