Repository: flutter
Issue: [go_router] Path parameters get lost for top redirections 
Labels: package,has reproducible steps,P2,p: go_router,found in release: 3.7,found in release: 3.9,team-go_router,triaged-go_router

## Steps to Reproduce

1. Create a route that contains a path parameter and add it to `routes`
```
GoRoute(path: "/p/:username", builder: (context, state) => Container()),
```
2. Do a deeplink to that route `https://droidpl.me/p/myUser
3. Add some code on the top level redirect to handle the deeplink
4. Check that the path parameters got lost in the way and only full location is displayed
5. This has been tested with the app that was open already on iOS

## Debugging information
While debugging, it seems this is the place where the params disappear: https://github.com/flutter/packages/blob/main/packages/go_router/lib/src/redirection.dart#L91-L105

`prevMatchList` contains the matched location, while `prevMatchList.uri` does not.

See a print of all the params received in the redirection
```
Location: /p/myUser
Params: {}
Query: {}
Extra: null
Error: null
Name: null
Fullpath: null
Path: null
Query Params all: {}
Subloc: /p/myUser
```

And see the image in the debugger:
![Screenshot 2023-04-02 at 20 33 52](https://user-images.githubusercontent.com/2143931/229372040-7f97393e-d9f1-4643-b664-c626e9e86bc7.png)

While `prevMatchList.uri` contains null values for the same parameters:
![Screenshot 2023-04-02 at 20 34 35](https://user-images.githubusercontent.com/2143931/229372072-cbd17461-d458-4457-bb83-eb055d90c7c7.png)

**Expected results:** 
Path parameter should be received as data in the redirection

**Actual results:**
Path parameters seem not to be passed correctly for top-redirections



## Flutter doctor

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
» flutter analyze
• No issues found!
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
» flutter doctor -v
[✓] Flutter (Channel stable, 3.7.8, on macOS 13.1 22C65 darwin-x64, locale en-ES)
    • Flutter version 3.7.8 on channel stable at /Applications/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 90c64ed42b (9 days ago), 2023-03-21 11:27:08 -0500
    • Engine revision 9aa7816315
    • Dart version 2.19.5
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /usr/local/share/android-sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME =
      /usr/local/share/android-sdk:/usr/local/share/android-sdk/platform-tools:/usr/local/share/android-sdk:/usr/local/opt/openssl@3/bin:/usr/local/opt/icu4c/bin:/Users/javierdepedrolopez/.nvm/versions/
      node/v17.0.1/bin:/Users/javierdepedrolopez/bin:/usr/local/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/usr/local/bin:/Applications/Visual
      Studio Code.app/Contents/Resources/app/bin:/Applications/flutter/bin
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 71.3.6
    • Dart plugin version 223.8214.16

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.3)
    • IntelliJ at /Users/javierdepedrolopez/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 72.1.4
    • Dart plugin version 223.8888

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.3)
    • IntelliJ at /Users/javierdepedrolopez/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8836.41/IntelliJ IDEA.app
    • Flutter plugin version 71.3.6
    • Dart plugin version 223.8214.16

[✓] VS Code (version 1.76.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.1 22C65 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 111.0.5563.146

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>