mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08: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