Hello,
I've got an issue with a master-detail page.
I set-up in the Return Pages, After add & After Edit the option: "List Page" (otherwise I'm being redirected to the view page)
This worked OK in ANM2019, now in ANM2021 I get this error:
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.
Requested URL: /Views/Home/ContractsForCessionsList.cshtml
I checked in the generated code (ViewNameEdit.cs) and I have this:
case "update": // Update // DN
CloseRecordset(); // DN
string returnUrl = "../Views/Home/ContractsForCessionsList.cshtml";
if (GetPageName(returnUrl) == "ContractsForCessionsList")
returnUrl = AddMasterUrl(ListUrl); // List page, return to List page with correct master key if necessary
SendEmail = true; // Send email on update success
var res = await EditRow();
if (res) { // Update record based on key
...
break;
}
For the moment being I've added the listpage name in quotes