Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug/Feature Request]: ms-windows-store URI schemas not being honored when within a <a> tag in a UWP WebView App on Xbox #5120

Open
spetrey opened this issue Feb 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@spetrey
Copy link

spetrey commented Feb 20, 2025

What happened?

I tried clicking on a <a href="ms-windows-store://...">Example</a> deeplink from within a WebView2 UWP App.

Actual: It launches the Xbox App Store

Expected: ms-windows-store://review/?ProductId=9WZDNCRFHVJL would open a Rate and Review Dialog on Xbox

It appears that Windows.System.Launcher.LaunchUriAsync will work if I want to programmatically launch a deeplink from within the C# wrapper. Example from the documentation:

bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store://navigatetopage/?Id=Gaming"));

Importance

Moderate. My app's user experience is affected, but still usable. Would be nice to have ms-windows-store:// deeplink working from within the Webview!

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

Latest

SDK Version

Latest

Framework

WinUI2/UWP

Operating System

Xbox

OS Version

Latest

Repro steps

  1. Create a webpage with an <a> element. Target href should be one of the supported schemas here: https://learn.microsoft.com/en-us/windows/apps/develop/launch/launch-store-app
  2. Create a WebView2 UWP application pointing to the webpage that hosts the ms-windows-store:// deeplink.
  3. Click on the deeplink from your Xbox UWP
  4. Observe issue

Repros in Edge Browser

Yes, issue can be reproduced in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

n/a

@spetrey spetrey added the bug Something isn't working label Feb 20, 2025
@spetrey spetrey changed the title [Bug]: ms-windows-store URI schemas not being honored when within a <a> tag in a UWP WebView App on Xbox [Bug/Feature Request]: ms-windows-store URI schemas not being honored when within a <a> tag in a UWP WebView App on Xbox Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant