fixed allredirects

I actually looked at the correct query this time.