mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
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:
parent
580c009cac
commit
fdc48c0edd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user