Patch #6807 ยป remove_internal_hostname_when_redirecting_to_login_page.patch
| app/controllers/application_controller.rb | ||
|---|---|---|
| 121 | 121 |
def require_login |
| 122 | 122 |
if !User.current.logged? |
| 123 | 123 |
# Extract only the basic url parameters on non-GET requests |
| 124 |
params[:only_path] = true |
|
| 124 | 125 |
if request.get? |
| 125 | 126 |
url = url_for(params) |
| 126 | 127 |
else |