Menu order does not persist if you add a 2nd View.

Workaround seems unlikely to be discovered by most users.

Steps provided by @harings_rob for reproducing the issue (#2468713: Internal/custom menu links force-reset to the top of their menus on cache rebuild) still apply if you add multiple Views.

Steps:

Have a menu with some item.
Add a view, add it to the menu.

Add a 2nd view; add it to the menu.

Edit the menu and drag it to another place.
Flush cache
Views menu item resets position. Show as expanded also resets*

*Show as expanded did not appear to be an issue.

A few other details seem worth noting:

  1. when exporting the configuration for the second View, no 'weight' attribute appears under the Menu section (no mention of weight at all)
  2. if you deliberately set a weight within the View UI, it sticks even after cache is cleared
  3. if you deliberately set a weight within the Menu UI, it does not stick beyond first save of the menu changes

Comments

kay_v created an issue. See original summary.

kay_v’s picture

Issue summary: View changes
rootwork’s picture

Version: 8.0.x-dev » 8.1.x-dev

This probably needs to be 8.1 at least. That should get it more attention too.

dawehner’s picture

I totally agree we should fix this quickly, given that this is sort of a data loss.

dawehner’s picture

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)
dawehner’s picture

tobiberlin’s picture

Had the same problem with an older version of Drupal 8.1.x - patch from https://www.drupal.org/node/2464077 solved the problem but as this patched was already applied to core an update to Drupal 8.1.5 solved this problem for me.

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

Given how old this issue is, I guess we can close it now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.