When I unpublish a node and have another user without permissions to view unpublished content trying to access that node (through an external link for example) it will generate a redirect loop. It just does a bunch of 302's to the same page, until the browser stops it.
I would expect an "access denied" page. What could cause the redirects to the same page?
Disabling "global redirect" module didn't have an effect. I don't have any rules or module code relating to it either.
Anonymous visitors get redirected to the /user/login page. Authenticated users don't have "view unpublished nodes" permission.
I guess I can change my 403 page to something other than /user/login to fix the redirect loop.
How would I create a regular page and show the login form if they are not logged in already, otherwise show a "page has been deleted" error?