When I post to the action from a standard HTML form it results in the following exception on the CurrentPage line:
System.InvalidOperationException: 'No UmbracoRouteValues feature was found in the HttpContext'
I'm pretty sure this is a bug, but don't know if I should have opened an issue on github. Should I, or only contributors can?
I also have a sugestion. Currently the Index() method of RenderController (used to perform the route hijacks) does not allow being async which is quite a big limitation in my opinion. Or am I missing something?
Good think I didn't submit the bug report. Your question made me realize I wasn't using the BeginUmbracoForm helper, and was instead using a regular mvc core form tag. It's fixed now.
Do you know if the async Index() for RenderController isn't actually supported yet?
CurentPage bug and improvement sugestion
Hello.
I have the following controller and action:
When I post to the action from a standard HTML form it results in the following exception on the CurrentPage line:
I'm pretty sure this is a bug, but don't know if I should have opened an issue on github. Should I, or only contributors can?
I also have a sugestion. Currently the Index() method of RenderController (used to perform the route hijacks) does not allow being async which is quite a big limitation in my opinion. Or am I missing something?
Thanks
Hi, if you think it is a bug, then create an issue on github using this link: https://github.com/umbraco/Umbraco-CMS/issues/new?assignees=&labels=project%2Fnet-core&template=3_BugNetCore.md
What URL are you using to hit your controller?
BR/ Bjarke
Hi,
Good think I didn't submit the bug report. Your question made me realize I wasn't using the BeginUmbracoForm helper, and was instead using a regular mvc core form tag. It's fixed now.
Do you know if the async Index() for RenderController isn't actually supported yet?
João
is working on a reply...