When clicking the Logout link in the toolbar, a 404 page appears if the current page is not accessible by anonymous users. It should lead to the login page, in this case.
When you click on logout do you get redirected to www.yourdomain/accounts/login/?next=previous-page ?
no, I'm staying on the page where I was. Btw, I',m using 2.4beta, no idea if it is the same case for older versions.
Hmm, I tried to reproduce this in 2.4 beta and get redirected to /accounts/login/?next=previous-page which is expected behavior in Django due to the value of LOGIN_URL. Just to make sure I got it right, you created a page, went into the admin and checked the login_required checkbox in "Advanced Settings", then went to the page live and clicked "Log out" on the toolbar ? I tested this in 2.3.5 and it does the same thing. Try setting LOGIN_URL
I don't have access to the page currently, but AFAIK, I did not set "login_required", but only access permission to certain groups. Since anonymous users are not in this groups, it seems to be the reason that I get the 404 page. Can you reproduce it this way?
I commited a patch to my fork, do you think this is okay?
could you open a pull request for this?
Same as #2124