- Issue created by @joncjordan
We have a block configured so that it doesn't display on a particular node type. It works after saving the node and viewing the page. However the block is displayed when previewing the node.
I haven't dug too deeply into the code but I imagine we need to account for \Drupal::routeMatch()->getParameter('node_preview').
Active
2.1
Code