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
22k stars 1.72k forks source link

[MAUI Blazor] Decide whether to support host pages located outside the content directory root #11541

Open MackinnonBuck opened 1 year ago

MackinnonBuck commented 1 year ago

MAUI Blazor uses the location of the host page (usually index.html) to determine where the root of the content directory is: https://github.com/dotnet/maui/blob/5105c37657b6be602e76988631cc159687cf4be9/src/BlazorWebView/src/Maui/Windows/BlazorWebViewHandler.Windows.cs#L59-L62

Currently, using a host page located in an RCL or a subdirectory of wwwroot/ causes static content requests to 404. This can be partially worked around by changing URLs to be relative to the host page location, but this obviously only works for URLs that can be expressed as such.

We could either:

Related: https://github.com/dotnet/maui/issues/8613

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Eilon commented 1 year ago

Some more notes in this doc issue: https://github.com/dotnet/AspNetCore.Docs/issues/27819#issuecomment-1335870663