Skip to content

Commit bee606d

Browse files
committed
MDL-65883 mod_quiz: fix quiz navigation buttons href
1 parent d0b1204 commit bee606d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mod/quiz/attemptlib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,7 +2121,8 @@ protected function page_and_question_url($script, $slot, $page, $showall, $thisp
21212121
// First question on page, go to top.
21222122
$fragment = '#';
21232123
} else {
2124-
$fragment = '#q' . $slot;
2124+
$qa = $this->get_question_attempt($slot);
2125+
$fragment = '#' . $qa->get_outer_question_div_unique_id();
21252126
}
21262127
}
21272128

0 commit comments

Comments
 (0)