Revert 'Do not redirect to protected pages after logout (see #6210)'