C
C#15mo 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
Angius15mo ago
If it doesn't stop after 20 redirects or so, it will keep redirecting infinitely
Shinigami
ShinigamiOP15mo ago
can we stop redirecting after a set amount of requests in this case?
Mayor McCheese
Mayor McCheese15mo ago
Browser dependent iirc
Angius
Angius15mo 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
ShinigamiOP15mo ago
I see chrome actually threw too many redirects page but in the network tab the request kept increasing
Accord
Accord14mo 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.
Want results from more Discord servers?
Add your server