Problem/Motivation

Steps to reproduce:

- Create Content Basic Page
- Create view for content, type Basic Page, give it a link 'list'
- Manually add a link to the tool menu with the url '/list'
- Choose link 'list', the view will show, the link will go active
- In the console, run 'drush cr'.
- Reload the page, the 'list' link is not active anymore!
- Executing 'Clear cache' or editing/saving the view will restore correct behavior

The work around is to define the menu in views as 'Normal Menu Entry' and add it to the desired menu.

The same thing happens with links to views with contextual filters. There is no workaround for this case. See also #1163868: Menu position doesn't get set for Views with contextual filters

These problems do NOT occur in Drupal 8.1.10.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

cgalli created an issue. See original summary.

berdir’s picture

Looks like this is caused by drush and can be fixed there: https://github.com/drush-ops/drush/pull/2393. Didn't check with this problem yet, but it solves my user/login user/logout visibility problem and I strongly suspect it's the same problem as this.

But something changed in core that this now breaks like this, so we should possibly protect better against this.

berdir’s picture

One possible indicator for the problem that's specific to /user/login is that 8.2 has a user.login.http route for REST/json authentication. But I even tried removing that route and it still failed.

cgalli’s picture

After installing the latest dev of Drush (9.0-dev-g0018c4d), the problem disappears. The active link is still correctly marked after cache rebuild with drush.

What change in core 8.2. triggered this problem remains unclear.

Version: 8.2.1 » 8.2.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.2.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
larowlan’s picture

Status: Active » Closed (works as designed)
Issue tags: +Bug Smash Initiative

Fixed in drush