We have moved to GitHub Issues
Created by Tim Anderson 17 Jun 2014, 13:58:53 Updated by Shannon Deminick 26 Jun 2017, 05:39:42
Shannon as requested from your blog comments: http://shazwazza.com/post/Custom-MVC-routing-in-Umbraco
When following the process outlined in your blog post above to create some custom MVC routes in Umbraco. I.e. Create a custom controller inheriting from UmbracoController, then use the EnsurePublishedContentRequest attribute.
If you then use a SurfaceController to place a simple form on the view rendered by the Custom Controller, when the form is posted back to the SurfaceController the Action which handles the POST request is never executed.
The SurfaceController functions as expected when the form is placed within a standard Template View. (To make sure there was not an error with the surface controller in the first instance)
Forms post back submissions must instead be handled the standard MVC way, i.e. placing a POST Action in your controller and letting the hijacked route handle the POST request.
If you need me to provide any code to help you replicate then let me know.
Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/
Assignee: Shannon Deminick
Backwards Compatible: True
Affected versions: 6.2.0
Due in version: