-
Notifications
You must be signed in to change notification settings - Fork 340
DevTools url has fragment and query parameters in the wrong order #2475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FYI @DanTup |
Although it's a bit unintuitive, this is expected. It's not how a URL normally would be formed but in Flutter we only get the fragment part, and we had a convention of putting a query string in it for pass our data around. Since the routing changes, we handle the URI parsing in When at page: Which we then parse into a URI to get Have you found code that is parsing the URI directly? If so, we should update it to use the params from the routing (since this should also work better for non-web too). (As an aside, while looking at this I noticed |
Now there is another '?' character in the url that is causing url parsing issues when trying to show the DevTools survey related: flutter/website#6696 |
@kenzieschmoll are you looking at this or did you want me to? If me, how do you end up with the bad URL? Is the goal to fix that, or just handle it better when it happens? |
@DanTup if you have time to take a peek, feel free! The bad url happens by default right now. I just opened DevTools to the connect screen and got the url with two '?' chars. The logic in #3574 shows an example of where it would be nice if we could just parse the Uri with |
I was using a release build: |
…browser from the server May fix flutter#2475.
Current:
http://127.0.0.1:9100/#/timeline?ide=IntelliJ-IDEA&uri=http%253A%252F%252F127.0.0.1%253A59289%252FolleV5zVaVs%253D
Expected:
http://127.0.0.1:9100/?ide=IntelliJ-IDEA&uri=http%253A%252F%252F127.0.0.1%253A59289%252FolleV5zVaVs%253D#/timeline
In the current form, Uri.parse gets the incorrect values for
fragment
andqueryParameters
The text was updated successfully, but these errors were encountered: