Для этого я добавил в appconfig.json ключ для проверки базового пути и установить его в app.xaml
Код: Выделить всё
@inject IConfiguration Configuration
@{
var basePath = Configuration["BasePath"] ?? "/";
basePath = basePath.EndsWith("/") ? basePath : basePath + "/";
}
Код: Выделить всё
var basePath = builder.Configuration.GetValue("BasePath") ?? "";
if (!string.IsNullOrEmpty(basePath))
{
app.UsePathBase(basePath);
app.MapBlazorHub($"{basePath}/_blazor");
}
else
app.MapBlazorHub("/_blazor");
Как это исправить? src = "https://i.sstatic.net/82gmpbjt.png"/>
Подробнее здесь: https://stackoverflow.com/questions/797 ... -isolation
Мобильная версия