We have several pages that pull data from an API and display on page. These API calls are reliant on a user being logged in to the Frontend (nothing to do with Member class). If there is no Frontend User, redirection takes place to get the visitor to log in.
The problem is if an Admin user is logged in to the CMS, but not logged in to the Frontend of the site, when they click on these pages, preview mode triggers this same redirection and unpredictable results.
These pages have no content and never will. Preview mode is not necessary for them anyway. The only things that may ever change on these pages is Title, Meta etc.
Is there a way to programatically block preview mode for selected page types? The best I can do for now is add a canView() to them and stop them from being loaded at all.