diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 4f30b843f31f3..51e6f0807fb56 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -4047,6 +4047,8 @@ protected function convert_child($child, $depth=1) { $attributes['link'] = $child->action; } else if ($child->action instanceof moodle_url) { $attributes['link'] = $child->action->out(); + } else if ($child->action instanceof action_link) { + $attributes['link'] = $child->action->url->out(); } $attributes['hidden'] = ($child->hidden); $attributes['haschildren'] = ($child->children->count()>0 || $child->type == navigation_node::TYPE_CATEGORY);