Project

General

Profile

Actions

Defect #12102

open

Installed Redmine in a sub-URI: Links are generated not correctly

Added by Dmitry Vorobiev over 11 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Project settings
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I have Redmine app installed in a sub-URI on Apache server (configured as Alias/ProxyPass, the same way as working installation of Redmine 0.8.5).

New installed Redmine app render pages correctly (both start or any inner page launched by direct URL like "/redmine2/issues/4600", where 4600 is a number of existing ticket) but has inner navigation links without sub-URI ("redmine2" in my case):

i.e. links are http://mydomain/projects instead of http://mydomain/redmine2/projects

My changes in configuration files are (based on advices given in issue #11881 etc):

# File: config/environment.rb

# Initialize the rails application
RedmineApp::Application.initialize!
Redmine::Utils::relative_url_root = "/redmine2" 

Please note that suggestion with RedmineApp::Application.routes.default_scope is not working for me (it gives rendered page with text "Page not found // The page you were trying to access doesn't exist or has been removed."):

# File: config/environment.rb

# NOT WORKED FOR ME:
# RedmineApp::Application.routes.default_scope = { :path => '/redmine2', :shallow_path => '/redmine2' }

Environment:
Redmine version 2.1.2
Ruby version 1.9.3
Rails version 3.2.8
Environment production
Database adapter MySQL
Operating system Microsoft Windows Server 2003 [Version 5.2.3790]


Files

redmine_wrong_urls.png (6.12 KB) redmine_wrong_urls.png Dmitry Vorobiev, 2012-10-15 15:38
2012-10-16_073110.png (3.37 KB) 2012-10-16_073110.png Dmitry Vorobiev, 2012-10-16 05:37
2012-10-16_073318.png (5.48 KB) 2012-10-16_073318.png Dmitry Vorobiev, 2012-10-16 05:37
2012-10-16_073308.png (6.25 KB) 2012-10-16_073308.png Dmitry Vorobiev, 2012-10-16 05:37
routes_16102012_739.txt (49.6 KB) routes_16102012_739.txt Dmitry Vorobiev, 2012-10-16 05:40

Related issues

Related to Redmine - Defect #11881: FCGI mode does not support sub-URIClosed

Actions
Related to Redmine - Defect #12420: URLs in notification emails do not include the sub-URIClosed

Actions
Related to Redmine - Defect #13077: redirect to wrong back_url behind Apache reverse proxyClosed

Actions
Actions

Also available in: Atom PDF