.NET MAUI Blazor NavigationManager may not work correctly on Windows
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
I am testing NavigationManager in .NET MAUI Blazor app. It seems I cannot change to a page using NavigationManager correctly on Windows platform. I record a short video to show this issue.
The Login page covers the About page after navigate to About Page on Windows.
The About Page displays correctly on Android and iOS.
### Steps to Reproduce
1. Checkout the project
```
$ git clone https://github.com/shugaoye/PassXYZLib.git
$ git clone https://github.com/shugaoye/PassXYZ.Vault2.git
$ cd PassXYZ.Vault2
$ git checkout ISSUE01 -b test
```
3. Load solution file from `PassXYZ.Vault2/PassXYZ.Vault.sln` and set a breakpoint at `OnLogin()` in `PassXYZ.Vault/Pages/Login.razor.cs`
4. Build and test the login page using username: test1 and password: 12345
5. After the login work correctly, it should switch to About page.
6. It does switch to About page, but somehow, the login page comes back again
### Version with bug
6.0.400 (current)
### Last version that worked well
Unknown/Other
### Affected platforms
Windows
### Affected platform versions
Windows
### Did you find any workaround?
I cannot find any workaround so far. Please see the below screen recording.
It cannot work correctly on Windows platform.

It works correctly on iOS.

### Relevant log output
_No response_
Contributor guide
Research direction
Clone PassXYZLib and PassXYZ.Vault2, check out ISSUE01, open PassXYZ.Vault.sln, and start at PassXYZ.Vault/Pages/Login.razor.cs, especially OnLogin(). Reproduce the login-to-About navigation on Windows with the supplied credentials, compare it with Android or iOS, and confirm that the Login page no longer covers or reappears over the About page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100