Even if you specify the return URL for predefined or custom setting, the page returns redirects to the list page.What can be wrong?
Use the Page_Redirecting server event.
ERR_TOO_MANY_REDIRECTS
Show your codes and where you put it.
The problem occurs only in pages in Dialog modal.
For modal pages (e.g. View/Edit), the normal cases will be closing the modal dialog box and refreshing the list page. Why are you redirecting to other pages and what are you trying to achieve?To debug redirecting issue, you can press F12 → Network to check the network response.
I would like to close the modal and redirect to a specific page
As explained:
To debug redirecting issue, you can press F12 → Network to check the network response.