Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: huggsy (g3)found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Steps to reproduce
- Use this code in Flutter Web:
usePathUrlStrategy();
Timer(const Duration(seconds: 2), () {
SystemNavigator.routeInformationUpdated(uri: Uri.parse('/test?query=abc%23d'));
});
runApp(const SizedBox());- Run the app and see the resulting url in the browser's url bar
Expected results
The url should be set to /test?query=abc%23d
Actual results
The url is set to /test?query=abc#d
As the result of this, if the uri is processed again (e.g. by RouterDelegate) the query parameter will be abc instead of abc#d, because # wasn't properly escaped.
The possible culprit is this Uri.decodeComponent() in engine's code
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22631.3447], locale pl-PL)
• Flutter version 3.19.6 on channel stable at C:\tools\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 54e66469a9 (3 weeks ago), 2024-04-17 13:08:03 -0700
• Engine revision c4cd48e186
• Dart version 3.3.4
• DevTools version 2.31.1
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\Gieted\AppData\Local\Android\sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = C:\Program Files\Chromium\Application\chrome.exe
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.9.34728.123
• Windows 10 SDK version 10.0.22000.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[✓] IntelliJ IDEA Community Edition (version 2024.1)
• IntelliJ at C:\Users\Gieted\AppData\Local\Programs\IntelliJ IDEA Community Edition
• Flutter plugin version 79.0.3
• Dart plugin version 241.15989.9
[✓] VS Code, 64-bit edition (version 1.89.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3447]
• Chrome (web) • chrome • web-javascript • unknown
• Edge (web) • edge • web-javascript • Microsoft Edge 124.0.2478.80
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 2 categories.Reacted by Mohellebi Abdessalem and maRci002
Reacted by Mert Guler
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listcustomer: huggsy (g3)found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Activity
Gieted commentedon May 6, 2024
From
Uri.decodeComponent()docs:darshankawar commentedon May 6, 2024
Thanks for the report. I was able to replicate this using latest versions.
stable, master flutter doctor -v
math1man commentedon Nov 4, 2025
Also impacting google client
huggsy, internal bug b/457471437.[web] Stop percent-decoding URLs written to browser history (flutter#…
github-actions commentedon Oct 17, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[web] Stop percent-decoding URLs written to browser history (flutter#…