Skip to content

[url_launcher] Missing # in links href when opening in new tab on the web #87941

@TheOneWithTheBraid

Description

@TheOneWithTheBraid

Please note: I already fixed the upstream, this issue is for transparency only and will be closed by a PR in a minute or two.

Steps to Reproduce

  1. Run the url_launcher example application.
  2. Update the files as follows: lib/main.dart:202 ⇾ change to external link to some random internal one starting with /...
  3. Run in web and drag the link to the navigation bar of a browser supporting this way to open a new tab

Expected results:
You should land on the same page with nothing but a different initialRoute.

Actual results:
You will see an ugly 404-message.

url_launcher_bug_screen_record

Logs
$ flutter analyze
Analyzing test_app...                                                   
No issues found! (ran in 4.3s)
$ flutter doctor -v
[✓] Flutter (Channel beta, 2.4.0-4.2.pre, on Arch Linux 5.13.5-zen1-1-zen, locale en_US.UTF-8)
    • Flutter version 2.4.0-4.2.pre at /opt/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f18b9281c2 (2 weeks ago), 2021-07-22 14:08:30 -0700
    • Engine revision 844c29f42a
    • Dart version 2.14.0 (build 2.14.0-301.2.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /opt/android-sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /opt/android-sdk
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /usr/bin/chromium

[✓] Linux toolchain - develop for Linux desktop
    • clang version 12.0.1
    • cmake version 3.21.0
    • ninja version 1.10.2
    • pkg-config version 1.7.3

[!] 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/linux#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at /usr/share/idea
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Arch Linux 5.13.5-zen1-1-zen
    • Chrome (web)    • chrome • web-javascript • Chromium 91.0.4472.164 Arch Linux

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 2.2Found to occur in 2.2found in release: 2.5Found to occur in 2.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: url_launcherPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions