I am currently using Ruby on Rails 3.2.8 and redirecting it to config / routes.rb :
root :to => redirect("/home/index.html")
which is great for redirecting http: // localhost: 3000 / to http: // localhost: 3000 / home / index.html in development. But in my test environment, I use a proxy and subpath, setting relative_url_root in config / environment / test.rb as follows:
config.action_controller.relative_url_root = '/testpath'
So I would expect a redirect from http://testdomain.com/testpath to http://testdomain.com/testpath/home/index.html , but instead it redirects to http://testdomain.com/home/index. html
How can I change the redirection operator to use relative_url_root if it is set?
source share