We have deployed our project on Azure Staging CM and CD and everything works fine. We then moved to production instance CM/CD. CM works fine but on CD site freeze on ajax calls and browser prompts to stop running script in jQuery lib (hosted on CDN).
We also noticed that
@URL.Action is returning empty string while on CM it is returning an actual URL.
hostname/api/sitecore/controller/action on CM throws an exception when trying to access the
Attempt to retrieve context object of type
Sitecore.Mvc.Presentation.RenderingContextfrom empty stack'
Which means it started executing the action.
hostname/api/sitecore/controller/action on CD redirects to our page not found page.
So my question is: are there MVC routes differences between CM and CD?