Commit 4c3f1203 authored by John's avatar John
Browse files

Issue #3259106 by StryKaizer: Custom links to the current page break if no class is defined

parent 38906d62
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -54,6 +54,10 @@ function layout_builder_modal_link_alter(&$variables) {
    return;
  }

  if (!isset($variables['options']['attributes']['class'])) {
    return;
  }

  if (!in_array('use-ajax', $variables['options']['attributes']['class'], TRUE)) {
    return;
  }