Commit eedf5f53 authored by Andy Whale's avatar Andy Whale Committed by Sascha Eggenberger
Browse files

Issue #3391029 by andy_w: Back to site link for custom blocks

parent dd3dc098
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -30,6 +30,11 @@ function gin_preprocess_breadcrumb(&$variables) {
          $url = Url::fromRoute('<front>');
        }

        // Custom block handling (a custom block cannot be viewed standalone).
        if ($entity_id === 'block_content') {
          $url = Url::fromRoute('<front>');
        }

        // Check for entity $url.
        if ($url && $url->access()) {
          $variables['breadcrumb'][$key]['url'] = $url;