U4-1453 - SurfaceController additionalRouteVal parameters not passed to controller action

Created by Phil Harvey 13 Jan 2013, 21:02:56 Updated by Sebastiaan Janssen 15 Jan 2013, 10:15:02

Addition route values supplied in the Html.BeginUmbracoForm() method should by passed to SuraceController action so they can be passed as parameters or bound to a model. This is behave as if they were submitted as hidden fields in a normal MVC controller.

For example the following form...

@using (Html.BeginUmbracoForm("Submit", "EmailFormSurface", new { subject = "test email", successPageUrl = "/" })) { /* my form goes here */ }

Should bind to this action, passing the subjects of subject and successPageUrl to the action method parameters...

[HttpPost] public ActionResult Submit(string successPageUrl, string referrerUrl) { // Do some work... }


Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 4.11.1

Due in version: 6.0.0, 4.11.4


Story Points: