Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

feat: add blockId to return url #442

Merged
merged 3 commits into from
Jan 5, 2024

Conversation

KristinAoki
Copy link
Contributor

JIRA Ticket: TNL-10036

Since many units can be quite long, let’s see if we can return the user to the edited component on reload, after Editor Save/Cancel.

edx-platform PR #33855 added an id to each xblock. This PR adds the blockId as the hash in the url so the page knows where to scroll to after the page loads.

Testing

  1. Edit a block that uses the text, problem, or video editor.
  2. Cancel the edit
  3. Unit page should scroll to the xblock that you were editing.
  4. Choose another block to edit
  5. Save the edit
  6. Unit page should scroll to the xblock that you were editing.

@KristinAoki KristinAoki merged commit 13f039a into main Jan 5, 2024
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants