dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Href on an image on Android doesn't work #25985

Open SandroRiz opened 1 day ago

SandroRiz commented 1 day ago

Description

Links under an image (a href) placed in a Page (razor components) or in the MainLayout.razor of the shared rcl project, opens chrome with a wrong link (https://0.0.0.1/_content/projectname.Shared/image.png )

Steps to Reproduce

Create a .NET MAUI Blazor Hybrid and Webapp Project Put a link under an image in the Home page or in the mainlayout (eg. in the top row div) <a href="https://..><img src=...></a>

Deploy the maui project on Android emulator or on real phone

Click the link and in Chrome it will open a wrong url like https://0.0.0.1/_content/projectname.Shared/imagename.png

Link to public reproduction project repository

https://github.com/SandroRiz/MauiAppForIssues

Version with bug

9.0.0 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 15

Did you find any workaround?

No response

Relevant log output

Ying-6 commented 8 hours ago

This issue has been verified using Visual Studio 17.13 Preview 1(9.0.10 & 9.0.0 & 9.0.0-rc.2.24503.2& 8.0.100). Can repro this issue on Android platform.