Redirect after sign in to previous page (unless it's a sign in/up/etc page)
This commit is contained in:
parent
6d7290f47c
commit
a0f85774c4
2 changed files with 9 additions and 1 deletions
|
@ -12,6 +12,6 @@ class Auth::SessionsController < Devise::SessionsController
|
|||
protected
|
||||
|
||||
def after_sign_in_path_for(_resource)
|
||||
root_path
|
||||
stored_location_for(:user) || root_path
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue