flutter/packages/flutter_web_plugins
Severin cab29b2034
Fix platformLocation path and search dropping (#126232)
This PR fixes the dropping of both the `path` and `search` fields from the platform location in the URL when using Flutter Web and brings it in par with similar technologies (e.g. React Router).
It allows developers to keep the original path and/or search parameters in the URL, which are perfectly valid even while fragment routing is present.

**Example use case:**
Call a Flutter Web app with initial config parameters in the URL: 
`http://my-flutter.app/?skipIntro=true`

**Example:**
Before initial routing:
`http://localhost:45389/?foo=bar`
After routing:
`http://localhost:45389/#/menu`
After routing (with fix):
`http://localhost:45389/?foo=bar#menu`

Fixes #116415
2023-05-09 16:38:49 +00:00
..
lib Fix platformLocation path and search dropping (#126232) 2023-05-09 16:38:49 +00:00
test Fix platformLocation path and search dropping (#126232) 2023-05-09 16:38:49 +00:00
pubspec.yaml Update packages (#126140) 2023-05-08 09:51:28 +02:00