<%@ Page language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<WebPartPages:AllowFraming runat="server"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="WebPartPageExpansion" content="full" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,IE=11,IE=10" />
    <meta name="GENERATOR" content="Microsoft SharePoint" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>Redirecting</title>
    <script type="text/javascript">

var url = window.location.href;
var idx = url.indexOf("?");
var query = (-1 == idx) ? "" : url.substr(idx + 1);
var args = query.split("&");
var newQuery = "";
var pageUrl = "../../SitePages/sbAssets/ModernForm.aspx";
for (var i = 0; i < args.length; ++i) {
    var part = args[i];
    var k = part.indexOf("=");
    var key = (-1 == k) ? part : part.substr(0, k);
    var value = (-1 == k) ? "" : part.substr(k + 1);
    var sep = (i == 0) ? "?" : "&";
    var newKey = key;
    switch (key.toUpperCase()) {
        case "ID":
            {
                newKey = "ItemId";
                break;
            }
        case "LIST":
            {
                newKey = "ListId";
                break;
            }
        case "ONLYINCLUDEONEFIELD":
            {
                newQuery += sep + "OnlyIncludeOneField=SBRTE";
                pageUrl = "../../Lists/sbInternalList/NewForm.aspx"
                sep = "&";
                newKey = "SBOnlyIncludeOneField";                
                break;
            }
    }
    newQuery += sep + newKey + "=" + value;
}
window.location = pageUrl + newQuery;
    </script>
</head>
<body>
    <div>Working on it...</div>
</body>
</html>