Problem/Motivation

If the main page content block is add in core block layout and a context, both are displayed. Only one should be displayed.

Discovered when upgrading an old site.

Probably caused by #3175944: Main page Content block from block layout renders blank. which is fine, the ticket fixed what it should have :-)

Related: same issue for context groups. @see #3374731: Do not duplicate Main page content block if block is in context group and block layout.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork context-3380369

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

silverham created an issue. See original summary.

silverham’s picture

Status: Active » Needs review
StatusFileSize
new2.55 KB

See attached patch.

admirlju made their first commit to this issue’s fork.

admirlju’s picture

To make it easier for maintainers, created an issue fork, applied the patch, and fixed some code style problems. From my testing, this does fix the problem, but leaving it as Needs review, so others also test the MR fork.

silverham’s picture

Thank you @admirlju for helping 🥰

markman4897’s picture

Status: Needs review » Reviewed & tested by the community

I have reviewed and tested the MR and it does fix the problem.