Restores the usage of the stored path instead of forcing root path after every login
This commit is contained in:
@@ -4,7 +4,7 @@ class Users::SessionsController < Devise::SessionsController
|
|||||||
if stored_path_allows_welcome_screen? && resource.show_welcome_screen?
|
if stored_path_allows_welcome_screen? && resource.show_welcome_screen?
|
||||||
welcome_path
|
welcome_path
|
||||||
else
|
else
|
||||||
root_path
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user