.NET MAUI BlazorWebView - how to load a URL at startup

%3CLINGO-SUB%20id%3D%22lingo-sub-3246428%22%20slang%3D%22en-US%22%3E.NET%20MAUI%20BlazorWebView%20-%20how%20to%20load%20a%20URL%20at%20startup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3246428%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3EI%20am%20new%20to%20the%20.NET%206.0%20and%20specifically%20MAUI.%3C%2FP%3E%3CP%3EI%20have%20created%20a%20multi-platform%20Blazor%20standard%20template%20project%20using%20Visual%20Studio%20Preview%20(17.2).%3C%2FP%3E%3CP%3EThe%20standard%20template%20project%20loads%20index.html%20inside%20the%20project.%3C%2FP%3E%3CP%3EI%20would%20like%20to%20be%20able%20to%20load%20an%20external%20url%20on%20startup%20instead.%3C%2FP%3E%3CP%3EI%20would%20appreciate%20any%20pointers%20on%20how%20to%20do%20this%20correctly.%3C%2FP%3E%3CP%3EThanking%20you%20in%20advance.%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3246428%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E.NET%20MAUI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBlazor%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor
 

I am new to the .NET 6.0 and specifically MAUI.

I have created a multi-platform Blazor standard template project using Visual Studio Preview (17.2).

The standard template project loads index.html inside the project.

I would like to be able to load an external url on startup instead.

I would appreciate any pointers on how to do this correctly.

Thanking you in advance.

0 Replies