MDL-80540 section_links: Fix link to current section/week

After the changes done in MDL-79986, the "Jump to current topic/week"
link in the Sections links block stopped working.
This patch fixes it and uses the new section.php page.
This commit is contained in:
Sara Arjona 2024-01-05 13:05:47 +01:00
parent 580c009cac
commit fdc48c0edd
No known key found for this signature in database

View File

@ -77,7 +77,7 @@ class block_section_links_renderer extends plugin_renderer_base {
if (!$sections[$jumptosection]->visible) {
$attributes['class'] = 'dimmed';
}
$html .= html_writer::link(course_get_url($course, $jumptosection), $linktext, $attributes);
$html .= html_writer::link(course_get_url($course, $jumptosection, ['navigation' => true]), $linktext, $attributes);
}
return $html;