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