When this line is set in the application.rb file:
config.action_controller.default_url_options = { trailing_slash: true}
The root_url
contains two forward slashes:
www.example.com//
Without that line we get:
www.example.com
The reason we have this is SEO purposes, the site was converted from php and we wanted to maintain consistency.
Question: Is there any way to remove the double forward slash? It only started doing this recently... maybe a recent change in Rails? (We always update to the latest.)
Update: Was able to reproduce with a default app. (Rails 3.2.8) https://github.com/silasj/rails_test_forward_slash
Gihub Issue: https://github.com/rails/rails/issues/8700