feat: allow blocks lower than units to be bookmarked

Adds support to jump/scroll to blocks lower than units if bookmarked. It
also fixes an issue with bookmark visit url function where it was not
passing query params.
This commit is contained in:
Navin Karkera
2024-07-11 13:17:44 +02:00
committed by Farhaan Bukhsh
parent 1573c7b07f
commit aeddb8a922
4 changed files with 40 additions and 19 deletions

View File

@@ -62,7 +62,7 @@ from openedx.core.djangolib.markup import HTML
<div class="vert-mod">
% for idx, item in enumerate(items):
% if item['content']:
<div class="vert vert-${idx}" data-id="${item['id']}">
<div class="vert vert-${idx}" data-id="${item['id']}" id="${item['id']}">
${HTML(item['content'])}
</div>
%endif