I'm having some trouble when displaying different actions on the same mvc page controller in edit mode.
In my controller I have an Index action and some other actions as well. I'll call one of them Action2 for arguments sake. Displaying these other action results works fine when browsing the site, but when I enter edit mode I'm always getting redirected to the Index action. This is not a server side redirect with http status 301 og 302, but via javascript. It is super annoying because I can see that the page is rendered like it should, but after a split second the iframe displaying the view refreshes, displaying the view served by the Index action instead.
Sample URLsWorking URL on the site:
https://mysite/mypage/Action2/
Enter edit mode for this page's ID (1702) on this URL:
https://mysite/EPiServer/CMS/#context=epi.cms.contentdata:///1702
In edit mode this URL loads and my page controller's Action2 method is fired displaying the view it is supposed to:
https://mysite/EPiServer/CMS/Content/mypage,,1702_228318/Action2/?epieditmode=True
After a short while, maybe half a second or so, the edit UI reloads this URL:
https://mysite/EPiServer/CMS/Content/mypage,,1702/?epieditmode=True
Now, this URL corresponds to the Index action. There is nothing left in the URL related to Action2.
The initiator for this second request is widgets.js:2 according to Google Chrome.