- Issue created by @mortona2k
- Status changed to Needs review
11 months ago 11:08pm 21 July 2023
Footer blocks are appearing in the modal, but probably shouldn't be.
This may be a result of using the front end theme as admin, and normally there wouldn't be admin blocks in the footer.
We can unset page.footer in layout_builder_iframe_modal_preprocess_html().
Alternatively, we can tell themers to implement their own hook to unset page regions. Documentation would help figure it out, and a contrib module won't be able to catch all the region names themes could be using.
Another option is to restrict each block from /admin via block settings.
Looks like the modal renderer in core is only doing the main content region. Why don't we follow that?
Decide which way makes sense.
Needs review
1.0
Code