C
C#10mo ago
Shinigami

❔ 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?
No description
6 Replies
Angius
Angius10mo ago
If it doesn't stop after 20 redirects or so, it will keep redirecting infinitely
Shinigami
Shinigami10mo ago
can we stop redirecting after a set amount of requests in this case?
Mayor McCheese
Mayor McCheese10mo ago
Browser dependent iirc
Angius
Angius10mo ago
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
Shinigami
Shinigami10mo ago
I see chrome actually threw too many redirects page but in the network tab the request kept increasing
Accord
Accord10mo ago
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.