I’ve created endless loops before, but there’s no telling what’s plaguing your code today. I also don’t exactly understand the steps you’re taking to create the issue. What URL are you hitting and where it is trying to redirect you to?
Thanks!
~Brad