Debugging herokuapp->herokai redirect