PowerToys
PowerToys copied to clipboard
Web links not suport with port numbers
Microsoft PowerToys version
~~0.33.1~~ 0.49.1 =<
Running as admin
- [ ] Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
✔️ Expected Behavior
Link's Opening with default web browser
❌ Actual Behavior
it asks which application to open
Other Software
No response
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.
if you do foo.com:80 it throws up an "find app" dialog.
Wonder if this is a Win11 regression, thought this worked
verified with 0.49.1
@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.
why not showing two results in this case? One for browser and one for app?
Still happening with PT 0.58.0
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.
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?
Linking https://github.com/dotnet/runtime/issues/73521 as the issue raised with the dotnet team
@crutkas @jaimecbernardo considering on the UriBuilder side, they confirmed this is intended behaviour, do we just assume otherwise for this use case?