Skip to content

fix: replace backslashes with forward slashes in homeURL construction…#23

Open
ImranFarhat01 wants to merge 1 commit into
FOSSEE:developfrom
ImranFarhat01:fix/home-url-backslash
Open

fix: replace backslashes with forward slashes in homeURL construction…#23
ImranFarhat01 wants to merge 1 commit into
FOSSEE:developfrom
ImranFarhat01:fix/home-url-backslash

Conversation

@ImranFarhat01

@ImranFarhat01 ImranFarhat01 commented Jun 16, 2026

Copy link
Copy Markdown

Problem

Save-and-navigate dialogs shown when leaving the editor via Dashboard,
Gallery, or Simulator nav links failed to navigate after a successful
save, leaving the dialog appearing stuck.

Root Cause

homeURL was constructed as:

${window.location.protocol}\${window.location.host}/...

Browsers do not treat backslashes as a protocol separator.
window.open()/window.location navigation with this malformed URL
fails silently instead of navigating to the intended destination.

Fix

Replace \ with // in all 4 occurrences (HomeDialog and
SchematicNameDialog components, both the 'home' and routeVal branches).

Testing

Note

This is the same class of bug as the already-fixed Bug (share URL
backslashes), but in a different file/location that was missed.

… (Bug 14)

Save-and-navigate dialogs shown when leaving the editor via Dashboard,
Gallery, or Simulator nav links built homeURL as:

  ${window.location.protocol}\\${window.location.host}/...

Browsers do not treat backslashes as a protocol separator, so
window.open()/window.location navigation with this malformed URL
fails silently instead of navigating to the intended destination,
leaving the dialog appearing stuck even after a successful save.

Fix: use // instead of \\ in all 4 occurrences (HomeDialog and
SchematicNameDialog, both the 'home' and routeVal branches).
@ImranFarhat01 ImranFarhat01 changed the title fix: replace backslashes with forward slashes in homeURL construction… (Bug 14) fix: replace backslashes with forward slashes in homeURL construction… Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant