Stop redirection on core api pages