Redirect not working correctly for archives
-
I have a custom post type set up on my site called stories. I have set up a restriction for this post type so that only logged in members can access it. I have the option set to redirect non logged in members to the login page. However, this does not work correctly for the main /stories archive page. If a non logged in user navigates to /stories – the main archive page – they are redirected to the login page but when they login they are redirected to the first story post rather than the main archive page incorrectly. Is there a way to fix this to redirect them back to the archive page rather than the first post?
The same problem also exists with bbpress forums. Rather than redirecting them back to /forums it redirects them to the first forum rather than the archive of all forums.
- The topic ‘Redirect not working correctly for archives’ is closed to new replies.