Actions
Defect #4777
closedRedmine no longer supports running in a sub-directory
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
2010-02-09
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
Version Details:
to the bottom of environment.rb, the application works, but images, stylesheets, and javascript files are referenced from the root directory. For example, instead of /projectdoc/javascripts/application.js, it calls /javascripts/applications.js.
- Redmine 0.9.2 (not yet in Affected versions list)
- Mysql 5.07
- Ruby 1.8.7
- Rails 2.3.5
- Phusion Passenger 2.0.3
Issue:
I was running Redmine 0.8.4 under passenger in a subdirectory /projectdoc. After upgrading to Redmine 0.9.2, Redmine would produce a 404 page when accessing the application. If I ran the included server (script/server), the application works.
I added the line:
ActionController::Base.relative_url_root = "/projectdoc"
to the bottom of environment.rb, the application works, but images, stylesheets, and javascript files are referenced from the root directory. For example, instead of /projectdoc/javascripts/application.js, it calls /javascripts/applications.js.
Suggestion:
Templates should be modified so that they reference relative_url_root in generating links.
Actions