Repository: flutter
Issue: [go_router] when location has '#' , subsequent ones will be omitted
Labels: package,has reproducible steps,P2,p: go_router,found in release: 3.7,found in release: 3.11,team-go_router,triaged-go_router

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

context.push("/web?url=https://test-m.junohoro.com/birth-time/#/birth");


```
GoRoute(
        path: '/web',
        name: RouteName.web,
        builder: (_, state) {
          print('uuuu:${state.queryParams['url']}');
          print('uuu2:${state.params['url']}');
          print('uuu3:${state.extra}');
          return WebViewPage('${state.extra}');
        }),
```

### Expected results

[GoRouter] pushing /web?url=https://test-m.junohoro.com/birth-time/#/birth
 
I/flutter (22335): uuuu:https://test-m.junohoro.com/birth-time/#birth
 




### Actual results

[GoRouter] pushing /web?url=https://test-m.junohoro.com/birth-time/#/birth
I/flutter (22335): [MyNavObserver] didPush: web, previousRoute: null
I/flutter (22335): uuuu:https://test-m.junohoro.com/birth-time/
I/flutter (22335): uuu2:null
I/flutter (22335): uuu3:null

### Code sample

```
  GoRoute(
        path: '/web',
        name: RouteName.web,
        builder: (_, state) {
          print('uuuu:${state.queryParams['url']}');
          print('uuu2:${state.params['url']}');
          print('uuu3:${state.extra}');
          return WebViewPage('${state.extra}');
        }),
```
    context.push("/web?url=https://test-m.junohoro.com/birth-time/#/birth");


### Screenshots or Video

<img width="990" alt="image" src="https://user-images.githubusercontent.com/15923901/236132583-9124486e-db80-48c4-a78c-a6b446061cd3.png">


### Logs

[GoRouter] pushing /web?url=https://test-m.junohoro.com/birth-time/#/birth
I/flutter (22335): [MyNavObserver] didPush: web, previousRoute: null
I/flutter (22335): uuuu:https://test-m.junohoro.com/birth-time/
I/flutter (22335): uuu2:null
I/flutter (22335): uuu3:null

### Flutter Doctor output

[!] Flutter (Channel stable, 3.7.12, on macOS 13.3.1 22E261 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.7.12 on channel stable at /Users/lizhuoyuan/fvm/versions/stable
    ! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/2.17.5/libexec/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/lizhuoyuan/fvm/versions/stable. Consider adding /Users/lizhuoyuan/fvm/versions/stable/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (2 weeks ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/lizhuoyuan/Library/Android/sdk
    • Platform android-33, build-tools 30.0.3
    • ANDROID_HOME = /Users/lizhuoyuan/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk-11.0.13.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.13+10-LTS-370)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.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.15+0-b2043.56-8887301)

[✓] VS Code (version 1.74.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.56.0

[✓] Connected device (2 available)
    • Pixel 6 Pro (mobile) • 1B231FDEE001S7 • android-arm64  • Android 13 (API 33)
    • Chrome (web)         • chrome         • web-javascript • Google Chrome 112.0.5615.137

[✓] HTTP Host Availability
    • All required HTTP hosts are available