Custom post type redirected to homepage – how to debug

The staple technique to debug an unwanted redirect is to interrupt it in process and dump a call stack of where it’s initiated from.

Outside of just doing it by hand by troubleshooting WP core’s redirect functions, there are some ready made solutions. Better HTTP Redirects is one plugin I’ve used on multiple occasions for it, it has debug mode that will do just that.