Add link prefix
Added by Kevin Dohlen over 8 years ago
Hello,
i have redmine 3.3.6 and rails 4.2.6 and xampp 3.2.2 installed.
I want to have redmine in a subdir of my xampp apache server.
So my rails server is running on port 3000 and the apache on port 80.
In my httpd.conf i configured a virtualhost like this:
<VirtualHost *:80> ServerName localhost <Location /redmine> ProxyPass http://localhost:3000/ ProxyPassReverse http://localhost:3000/ </Location> </VirtualHost>
My problem is:
when i am on my redmine page for example http://localhost/redmine then my page is shown correct, for this i have to add
ActionController::Base.relative_url_root = "./"
in my environment.rb, but if i want to click on any link in on the page i get to
http://localhost/login instead of http://localhost/redmine/login.
My question:
How can i add the /redmine prefix for all links on my page?
Best regards Kevin