Blazor Hybrid Webview cannot be force reloaded for urls containing query parameters with a dot (.) #25689
Labels
area-blazor
Blazor Hybrid / Desktop, BlazorWebView
good first issue
Good for newcomers
platform/android
platform/ios
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Description
There is an issue in Blazor MAUI where URLs containing a query parameter with a dot (.) cannot be force reloaded.
The issue stems from the Path.HasExtension method, which incorrectly identifies the query parameter as a file extension. This causes the URL to be treated as a file path, leading to unexpected behavior when attempting a force reload.
Path.HasExtension is being used from [UriExtensions] in BlazorWebView (https://github.com/dotnet/maui/blob/main/src/BlazorWebView/src/Maui/Extensions/UriExtensions.cs)
Steps to Reproduce
Steps to Reproduce
Link to public reproduction project repository
https://github.com/modplug/HybridMauiQueryParamsFailureRepro
Version with bug
8.0.92 SR9.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
I haven't been able to find a way around this since the url parsing and navigation is internal in
Relevant log output
The text was updated successfully, but these errors were encountered: