Fix unexpected redirection to /explore after sign-in (#26143)

pull/26146/head
Claire 2 years ago committed by GitHub
parent 3cbc69f13d
commit b629e21515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -108,7 +108,7 @@ class Auth::SessionsController < Devise::SessionsController
end end
def home_paths(resource) def home_paths(resource)
paths = [about_path] paths = [about_path, '/explore']
paths << short_account_path(username: resource.account) if single_user_mode? && resource.is_a?(User) paths << short_account_path(username: resource.account) if single_user_mode? && resource.is_a?(User)

Loading…
Cancel
Save