Tacking onto #1572202: IPE changes aren't shown after second save without page refresh. It seems to be the same problem, but menus (menu blocks, menu trees) are the ones still disappearing.

Problem/Motivation

Menus disappear on any number of IPE saves, or layout changes.

Proposed resolution

Workaround: page refresh.

Patch to keep menus present.

NOTE: may be a Panels issue?

Comments

jeremiahtre.in’s picture

Update: this only seems to happen for panelized menu trees where the node is a part of the active trail. In other words, the page's menu entry is within the menu being output. Try with a menu of which the page has no part, and the menu remains.

merlinofchaos’s picture

This may ultimately not really be fixable.

IPE performs a content re-render when completing; if the content is looking at the active trail, that's going to be different during an AJAX operation, unfortunately, and there is likely nothing that can be done about it.

Olivier Beerens’s picture

Very annoying bug when you use menu_block with main menu to have Primary and Secondary links... because the page's menu entry will always be part of the menu being outputed.

adamdicarlo’s picture

What about faking $_GET['q'] to the path of the page being edited during the Ajax request?

damienmckenna’s picture

Component: Code » IPE integration
Issue summary: View changes
damienmckenna’s picture

Version: 7.x-3.0-rc1 » 7.x-3.x-dev

Might it be worthwhile to just cause IPE to reload the page after saving?

kenorb’s picture

joelstein’s picture

See #2824874-2: Fake path for better context when rendering panes with IPE which fakes the path to provide better context when rendering panes.