❔ Two Routes redirecting to each other using RedirectToActionResult, what will happen in this case?
Hi, I created 2 action results and both redirect to each other, I've noticed requests keep increasing in the network tab. but when will it stop? or does it stop even? what happens in this case?
6 Replies
If it doesn't stop after 20 redirects or so, it will keep redirecting infinitely
can we stop redirecting after a set amount of requests in this case?
Browser dependent iirc
Technically, yeah, it's on a per-browser basis
Firefox and Chromium sets it to 20, IE I believe was 10 or so
Unsure about Safari
I see
chrome actually threw too many redirects page but in the network tab the request kept increasing
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.