Fixes: U4-2653 BeginUmbracoForm should use absolute path with query string URLs without the protocol
This commit is contained in:
@@ -466,7 +466,7 @@ namespace Umbraco.Web
|
||||
Mandate.ParameterNotNullOrEmpty(action, "action");
|
||||
Mandate.ParameterNotNullOrEmpty(controllerName, "controllerName");
|
||||
|
||||
var formAction = UmbracoContext.Current.OriginalRequestUrl.ToString();
|
||||
var formAction = UmbracoContext.Current.OriginalRequestUrl.PathAndQuery;
|
||||
return html.RenderForm(formAction, FormMethod.Post, htmlAttributes, controllerName, action, area, additionalRouteVals);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Umbraco.Web.Routing
|
||||
|
||||
response.Write("<html><body><h1>Page not found</h1>");
|
||||
response.Write("<h3>");
|
||||
response.Write(string.Format(reason, HttpUtility.HtmlEncode(UmbracoContext.Current.OriginalRequestUrl)));
|
||||
response.Write(string.Format(reason, HttpUtility.HtmlEncode(UmbracoContext.Current.OriginalRequestUrl.PathAndQuery)));
|
||||
response.Write("</h3>");
|
||||
if (!string.IsNullOrWhiteSpace(_message))
|
||||
response.Write("<p>" + _message + "</p>");
|
||||
|
||||
Reference in New Issue
Block a user