I'm having some trouble when displaying different actions on the same mvc page controller in edit mode.
Working 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.
Anyone else experiencing this behavior?
Some version info:
I'm seeing the same thing. Did you ever get this to work?
Unfortunately, no. I'm interested to hear from you if you have som insight on this.
This does not sound like intended behavior. I've reported an issue on it: #119339: Non-default controller actions are not rendered in edit mode.
We'll take a look at it and see if there's something we can do about it. Thanks for reporting it.
Tarjei: I've reworked my page to use ajax instead which works nicely. Might not be an option for every everyone though.
An update: If everything goes as expected (that is we have a potential soltution but need to validate it through test) we will release support to persist action (and optionally parameters) in url:s in EPiServer.Cms.Core 7.18.0. Those links will also support navigation in preview mode without redirections.
We have the exact same problem in EpiServer 9 (EPiServer.CMS.Core 9.7.2) so the bug http://world.episerver.com/support/Bug-list/bug/119339 should be re-opened.
We are seeing similar behavior in version 10.2.0.270. Was this ever fixed, or is there a patch?