Good morning.
Find where the problem is, but I do not have the solution.
I am using an AAM plugin to manage the accesses according to the role. Within this plugin, there is an option to redirect a web, after login.
If you want to redirect a different page to the main page, the entry is not registered.
Do you know how to fix it?
https://ww.wp.xz.cn/plugins/advanced-access-manager/