mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Refactor routes in order to be compatible with Rails 4
This commit is contained in:
@@ -44,7 +44,7 @@ class StaticController < ApplicationController
|
||||
|
||||
redirect_to(
|
||||
if params[:redirect].blank? || params[:redirect].match(login_path)
|
||||
root_path
|
||||
"/"
|
||||
else
|
||||
params[:redirect]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user