maui icon indicating copy to clipboard operation
maui copied to clipboard

[Android, iOS, Mac] Fixed Query parameters not passed on Shell navigation

Open Vignesh-SF3580 opened this issue 5 months ago • 1 comments

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

Vignesh-SF3580 avatar Jun 17 '25 13:06 Vignesh-SF3580

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

jsuarezruiz avatar Jun 18 '25 06:06 jsuarezruiz

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 18 '25 06:06 azure-pipelines[bot]

/rebase

jsuarezruiz avatar Oct 27 '25 16:10 jsuarezruiz