Skip to content

Web IDE: handle context updated event

Cindy Halim requested to merge 110-update-url-post-branch-checkout into master

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 in window.history.state
  • Updates the URL only if previousRef exists and previousRef !== 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

Merge request reports

Loading