I think I have found a solution which is to modify the umbraco\plugins\umbracoContour\views\form.cshtml to render the form tag differently (from line 25)
@* ** THIS BREAKS** using (Html.BeginForm("ContourForm", "FormRender", FormMethod.Post, new { enctype = "multipart/form-data" })) ** SO USE INSTEAD ** *@ @using (Html.BeginForm())
Is this a bug with contour? A known issue that routing cannot be used on umbraco sites? or am I registering my custom route incorrectly?
Possible bug with razor forms and routing
I believe I had found a bug in contour in umbraco v 4.8.
This issues follows one raised here:
http://our.umbraco.org/forum/umbraco-pro/contour/38943-Error-Service-Endpoint-not-found-on-submit
When an umbraco website uses routing (in web.config)
and a route is registered on application start up (like this in app_code) ..
.. the <form> tag rendered on a form (using the razor macro ) is added incorrectly like this:
<form action="/my/custom/route?action=ContourForm&controller=FormRender" enctype="multipart/form-data" method="post">
I think I have found a solution which is to modify the umbraco\plugins\umbracoContour\views\form.cshtml to render the form tag differently (from line 25)
Is this a bug with contour? A known issue that routing cannot be used on umbraco sites? or am I registering my custom route incorrectly?
Adam
is working on a reply...