maui
maui copied to clipboard
[Android, iOS, Mac] Fixed Query parameters not passed on Shell navigation
Issue Detail
When navigating to a page using Shell with query parameters (e.g., via [QueryProperty]), the expected query value was not available during navigation.
Root Cause
In Shell navigation with query parameters, the query attributes were being set on the page after it was assigned to the Content property. As a result, the query value was not available when the navigation occurred.
Description of Change
The query parameters (QueryAttributesProperty) are now assigned to the page before it is set to ContentCache in ShellContent. This ensures the query value is available to the page before the Navigated event is triggered.
Tested the behavior in the following platforms
- [x] Android
- [x] Windows
- [x] iOS
- [x] Mac
Issues Fixed
Fixes https://github.com/dotnet/maui/issues/10509
Screenshots
| Before Issue Fix | After Issue Fix |
|---|---|
Hey there @@Vignesh-SF3580! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.
/azp run MAUI-UITests-public
Azure Pipelines successfully started running 1 pipeline(s).
/rebase