Skip to content

Conversation

@elliette
Copy link
Member

@elliette elliette commented Jan 15, 2026

Fixes #9612

Loading DevTools with the legacy URL format currently fails for dart2wasm-compiled DevTools.

This is because:

  1. flutter_bootstrap.js adds the compiler query parameter before the hash:

e.g. http://127.0.0.1:9102/#/?page=inspector -> http://127.0.0.1:9102/?compiler=wasm#/?page=inspector

  1. The mapLegacyUrl function which maps the legacy format to the new format doesn't know how to handle the compiler query parameter before the hash

This PR updates the mapLegacyUrl function to look for the compiler query parameter before the hash.

This PR should be cherry-picked into Flutter beta along with #9615.

@elliette elliette requested a review from a team as a code owner January 15, 2026 19:54
@elliette elliette requested review from bkonyi and srawlins and removed request for a team January 15, 2026 19:54
@elliette elliette merged commit b49c3c6 into flutter:master Jan 15, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redirecting from legacy url is broken for dart2wasm-compiled app

2 participants