Modifies redirect to document so that it will work when app is hosted in sub uri
Merge branch 'develop'

Conflicts:
	Gemfile.lock
	lib/rails/actionpack/lib/action_controller/base.rb