fix redirect url if user is signed in
This commit is contained in:
parent
c0bc92b7e2
commit
c5b6e16608
@ -49,7 +49,9 @@ class ApplicationController < ActionController::Base
|
|||||||
if resource.is_a?(AdminUser)
|
if resource.is_a?(AdminUser)
|
||||||
admin_dashboard_path
|
admin_dashboard_path
|
||||||
else
|
else
|
||||||
channels_path
|
# make sure https is specified in the redirect url if we're in the production environment
|
||||||
|
url = @ssl ? "#{domain}channels" : "#{domain}channels"
|
||||||
|
return url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user