I took over a d7 page from another dev to whom I currently don't have contact. Now I'm digging through the different configurations and settings etc. trying to fix various minor issues. One of the issues is a strange behavior that prevents users from logging in in case they access a restricted node. In detail:
The website I'm working on has a restricted area "intranet" which is only accessible for logged in users. Users that are not logged in trying to access the "intranet pages" see only the login form with the message "You have to be logged in to access this page". So far so good.
But when I (not logged in) then actually enter the correct login credentials on the form that appears on those restricted nodes, I'm just getting the error message "You have to be logged in…" again, together with the login form. Logging in through the regular login page "/login" works perfectly fine.
I hope somebody knows a way around this problem? Any pointers appreciated…