| commit | a7a5ec81789bb60e1ee8bf9b1e23c2479f446e9e | [log] [tgz] |
|---|---|---|
| author | Nozomi Hijikata <121233810+nozomemein@users.noreply.github.com> | Wed Sep 24 07:55:51 2025 +0900 |
| committer | GitHub <noreply@github.com> | Tue Sep 23 22:55:51 2025 +0000 |
| tree | 1304b0c29ccffe612522f87a2538ccaa3f370370 | |
| parent | 51df7184f404f7f41ffabccc64f9de76e225899b [diff] |
[go_router] Fix Android Cold Start deep link with empty path losing scheme and authority. (#9868) ### Description Fixes an issue where deep links with empty paths (e.g., `https://example.com`) lose their scheme and authority information during Android Cold Start. This PR fixes https://github.com/flutter/flutter/issues/174249 Detailed reproduction steps, environment information, and code sample are provided in the linked issue. ### Problem On Android Cold Start, if the initial deep link has no path (`https://example.com`), `_effectiveInitialLocation` incorrectly creates a new `Uri` with only `/?` instead of preserving scheme and authority. This results in the router receiving a relative path instead of the full deep link URL. ### Solution Use `Uri.replace(path: '/')` instead of creating a new `Uri`, so that the original scheme and authority are preserved. ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: