mammoth-notebook-46426
06/28/2023, 2:56 PM/admin
), they are redirected to the index for the resource they don't have access to, then redirected to the root_path
, ultimately resulting in a ERR_TOO_MANY_REDIRECTS
error.
I know we could add a dashboard but as of now we have no use for that. Any insight would be appreciated. Thanks!loud-jewelry-99127
06/28/2023, 3:13 PMERR_TOO_MANY_REDIRECTS
should not happen. There you can add some details and relevant information about the admin panel in order to guide the users.
Another approach would be to configure a lambda home_path
on avo.rb
initializer
ruby
config.home_path = -> {
if current_user.is_admin?
"/admin/dashboards/dashy"
else
"/admin/resources/users"
end
}