I meant routes.MapUmbracoRoute. No custom routes messing up?
What is the html from the form? Are you using @Html.BeginUmbracoForm<ControllerName>("actionName") ? Saved me a few times as the non-generic version was doing strange things.
My best guess was that two controllers exist with the same name messing up MVC routing.
If it worked before, I would try to check out the previous commit and see if it still works.
Whilst having a tidy up exercise of my project I renamed my surface controller but had't changed in my global ajax calls.
I would think it would give some time of error but instead give me an obscure url e.g instead of /umbraco/surface/controller/action it gave me /sitemap/controller/action
It made me feel like there was route hijacking or something.....
Surface controller path issue
Hopefully somebody can help but its been driving me potty all afternoon.
I'm doing a call on a surface controller @Url.Action("","")
But for some reason its coming up with a url /sitemap instead of /umbraco/surface...
I have checked the web.config and there are no rewrite rules there but I can't find where this is happening?
This has been working 7.6.4
Custom routes or controllers maybe?
There were a couple of custom routes in the web.config but this is for uCommerce and are fine.
How can controller change the route from /umbraco/surface/...
It's killing me....
This was working, its almost like something has a custom route but I can't find it
I meant
routes.MapUmbracoRoute
. No custom routes messing up?What is the html from the form? Are you using
@Html.BeginUmbracoForm<ControllerName>("actionName")
? Saved me a few times as the non-generic version was doing strange things.My best guess was that two controllers exist with the same name messing up MVC routing.
If it worked before, I would try to check out the previous commit and see if it still works.
Thanks Damiaan
This freaked me out and was something so stupid.
Whilst having a tidy up exercise of my project I renamed my surface controller but had't changed in my global ajax calls.
I would think it would give some time of error but instead give me an obscure url e.g instead of /umbraco/surface/controller/action it gave me /sitemap/controller/action
It made me feel like there was route hijacking or something.....
My god did I learn the hard way.
is working on a reply...