We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c5294a commit ed87323Copy full SHA for ed87323
app/controllers/application_controller.rb
@@ -52,6 +52,7 @@ def store_location
52
end
53
54
def after_sign_in_path_for(user)
55
+ session[:previous_url] = nil if session[:previous_url] == "/"
56
session[:previous_url] || begin
57
if user.members.present?
58
users_path
0 commit comments