Skip to content

HyperlinkButton refuses to navigate to file:// URI #2357

@DHowett-MSFT

Description

@DHowett-MSFT

Describe the bug

<HyperlinkButton Content="All URIs are created Equal"
                 NavigateUri="file:///C:/sad.html" />

Clicking this button results in nothing happening (not even an exception).

Steps to reproduce the bug

As above. Have a file called sad.html in C:.

Terminal's use case was embedding third-party notices as an HTML file in our package and then launching the browser to that file.

Expected behavior
It works.

Version Info
Windows 10.0.19041.0
This is a platform HyperlinkButton, so I presume it doesn't matter which version of MUX is in use.

Windows 10 version Saw the problem?
Insider Build (19041) Yes
November 2019 Update (18363) Untested
May 2019 Update (18362) Untested
October 2018 Update (17763) Untested
April 2018 Update (17134) Untested
Fall Creators Update (16299) Untested
Creators Update (15063) Untested
Device form factor Saw the problem?
Desktop Yes
Mobile Untested
Xbox Untested
Surface Hub Untested
IoT Untested

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature proposalNew feature proposalneeds-winui-3Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)team-ControlsIssue for the Controls team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions