Skip to content

ShellContent routes do not call ApplyQueryAttributes #28453

@bzd3y

Description

@bzd3y

Description

When a page that implements IQueryAttributable is registered as route in ShellContent, its implementation of ApplyQueryAttributes does not get called when the Shell navigates to it, either as the default ShellContent or if the user clicks the page's flyout item.

This is true regardless of if the ShellContent route has any query parameters.

Steps to Reproduce

  1. Create a new MAUI app
  2. Change MainPage to implement IQueryAttributable
  3. Put a break point on ApplyQueryAttributes (and/or leave the boiler plate NotImplementedException)
  4. Run the app.

Expected outcome: The breakpoint gets hit and/or the exception is thrown.
Actual outcome: Neither

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

area-controls-shellShell Navigation, Routes, Tabs, Flyoutp/2Work that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androidplatform/iosplatform/macosmacOS / Mac Catalystplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions