Web IDE: handle context updated event
Issue: [Bug] Update URL after checkout branch (gitlab-web-ide#110 - closed)
What does this MR do and why?
As a follow up to: Update URL after branch checkout (gitlab-web-ide!327 - merged), this MR adds the handleContextUpdated
logic:
- Keeps track of
previousRef
inwindow.history.state
- Updates the URL only if
previousRef
exists andpreviousRef !== ref
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
See refactor: modify updateWebIdeContext to handle ... (gitlab-web-ide!359 - merged) for screen recordings
Edited by Cindy Halim