-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Xamarin.Forms Shell - contextual navigation from global routes is not working #11237
Comments
I got the same issue in Xamarin forms 4.8. |
Yes same here, any work around for this? I need to keep state of 3 pages intact when navigating between them. I'm also not using the tabs because I'm rendering my own tabs. The main tab is supposed to act as the initial page, I want to navigate between the two other pages like "../page1" and "../page2". And to navigate back to the main page "..". This doesn't work when trying to go to the main page and when trying to navigate to the other pages it throws exception |
Can you test with the nuget here? @MaxFmi a couple notes about the sample you attached
|
@PureWeen Thanks for the answer. I haven't worked with Azure DevOps and am not sure where to download the nuget. Artifacts is only showing two old Android entries. Addressing 1. Corrected spelling and uploaded example in this issue. |
@MaxFmi on the page above you would click on where it says "4 published" Here's a direct link you can use When you hover over the "nuget" option you'll see three dots to the right. Click those to download the packages |
fixes #13328 fixes #11237 * Fix Shell Navigation for Hierarchally registered Global Routes * - fix added paths * - fix relative hierarchical routing * - remove extra comment * - remove comments * - generalize shell setter * - additional test * Update BaseShellItem.cs * - fix routes pushed with longer uris * - improve matching * - clean up comments * - fix multiple back navigation with hierarchies * - fix root routes * - fix absolute routes
It works. Thank you @PureWeen |
Description
Having two pages registered as global routes (see "Register page routes" under Shell navigation) and navigating in a contextual way won't work (nothing happens, no exception, no return value or anything else).
Steps to Reproduce
5.1 Monkeys (tab)
5.2 Select any monkey
5.3 Click the button "Navigate to MonkeyGenomePage"
Expected Behavior
App should navigate to the page MonkeyGenomePage.
Actual Behavior
Nothing happens.
Basic Information
Screenshots
Reproduction Link
Workaround
Not using contextual routes on global routes + using a prefix to make routes unique.
The text was updated successfully, but these errors were encountered: