Try our conversational search powered by Generative AI!

Non-default controller actions are not rendered in edit mode.


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 URLs

Working URL on the site:

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:

After a short while, maybe half a second or so, the edit UI reloads this URL:

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?

Sep 01, 2014 13:24

Some version info:


Sep 01, 2014 13:32


I'm seeing the same thing. Did you ever get this to work?

Edited, Nov 04, 2014 15:56

Unfortunately, no. I'm interested to hear from you if you have som insight on this.

Nov 04, 2014 16:28

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.

Nov 05, 2014 9:32

Awesome, Nicke!

Tarjei: I've reworked my page to use ajax instead which works nicely. Might not be an option for every everyone though.

Nov 10, 2014 13:05

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. 

Nov 10, 2014 14:53

We have the exact same problem in EpiServer 9 (EPiServer.CMS.Core 9.7.2) so the bug should be re-opened.

Sep 20, 2016 16:27

We are seeing similar behavior in version  Was this ever fixed, or is there a patch?

Nov 03, 2017 20:42
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.