diff --git a/bootstrap4-navwalker.php b/bootstrap4-navwalker.php index 10da9b1..f634d25 100644 --- a/bootstrap4-navwalker.php +++ b/bootstrap4-navwalker.php @@ -190,6 +190,7 @@ public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) // If the item has children, add atts to the . if (isset($args->has_children) && $args->has_children && 0 === $depth && $args->depth > 1) { $atts['href'] = '#'; + $atts['data-href'] = $item->url; $atts['data-toggle'] = 'dropdown'; $atts['aria-haspopup'] = 'true'; $atts['aria-expanded'] = 'false';