Fix arguments on redirect, plus use /api/