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.
Any ideas?
Update
Calling hostname/api/sitecore/controller/action
on CM throws an exception when trying to access the RenderingContext
:
Attempt to retrieve context object of type
Sitecore.Mvc.Presentation.RenderingContext
from empty stack'
Which means it started executing the action.
However 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?