Just a simple fix.

redirect() was running on every query: menus, custom queries, the admin panel, etc.