PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Web links not suport with port numbers

Open hacku5 opened this issue 4 years ago • 9 comments
trafficstars

Microsoft PowerToys version

~~0.33.1~~ 0.49.1 =<

Running as admin

  • [ ] Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

https://imgur.com/a/Xq5ODCi/

✔️ Expected Behavior

Link's Opening with default web browser

❌ Actual Behavior

it asks which application to open

Other Software

No response

hacku5 avatar Nov 03 '21 20:11 hacku5

When you click your link, https://imgur.com/a/Xq5ODCi, it redirects to: https://github.com/microsoft/PowerToys/issues/url instead of the actual image.

Ahsoka avatar Nov 03 '21 20:11 Ahsoka

if you do foo.com:80 it throws up an "find app" dialog.

Wonder if this is a Win11 regression, thought this worked

crutkas avatar Nov 03 '21 21:11 crutkas

verified with 0.49.1

crutkas avatar Nov 03 '21 21:11 crutkas

@crutkas In this case, I believe Windows think the foo.com is the application scheme and the 80 is the address (parameters to the application). I think this will be hard to fix after the supports of the application URI is fixed.

franky920920 avatar Nov 03 '21 23:11 franky920920

why not showing two results in this case? One for browser and one for app?

htcfreek avatar Nov 04 '21 18:11 htcfreek

Still happening with PT 0.58.0

ChaseKnowlden avatar May 12 '22 19:05 ChaseKnowlden

I'm currently trying to figure out this issue. It seems to be a problem with UrlBuilder (or maybe it's a feature?). For anything that is formatted in URL:port, URLBuilder treats the URL part as schema, and the port part as the path/host. image This could be resolved with a few more checks, is it a correct fix to isolate this pattern, or is "tel:411" a valid scheme/path URI?

KohGeek avatar Aug 06 '22 12:08 KohGeek

Linking https://github.com/dotnet/runtime/issues/73521 as the issue raised with the dotnet team

KohGeek avatar Aug 06 '22 14:08 KohGeek

@crutkas @jaimecbernardo considering on the UriBuilder side, they confirmed this is intended behaviour, do we just assume otherwise for this use case?

KohGeek avatar Aug 07 '22 08:08 KohGeek