-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Navigation to a route relatively currently doesn't work with Shell #6096
Comments
@Hasanajouz I wasn't able to trigger this with a timeout exception. Currently we don't support relative routing to other routes because shell doesn't currently support a navigation stack for routes. If you change the navigation to Shell.Current.GoToAsync("Register",false); does that work? |
Shell.Current.GoToAsync("Register",false); is exactly what i tried. I used to route between other routes without navigation. while Shell.Current.GoToAsync("Register",false); used to work in pre 9 |
@Hasanajouz wait I copy and pasted the wrong sample apologies Can you try Shell.Current.GoToAsync("//Register",false); |
@PureWeen yes that worked |
@Hasanajouz Awesome!! We're still getting the behavior for pushing routes on to the stack all finished though. The syntax you initially have will work in upcoming versions |
Given the 4.2 RC releases, can we expect this as part of 4.3+? |
Follow up question @PureWeen -- since routes aren't pushed on to the stack at this time, what is the suggested approach for back button behavior? Do Shell apps need to maintain their own internal queue by hooking in to Currently in our application when attempting to invoke default back button behavior, the application crashes. I'm fairly certain all of the routes are being correctly defined (mix of Xaml and At this point, I'm unclear if this is an issue with our application, an issue with documentation, a framework issue, or some mix of the three. |
Description
Steps to Reproduce
<FlyoutItem Route="WelcomeFlyout"> <ShellContent Route="Welcome" ContentTemplate="{DataTemplate page:WelcomePage}" /> </FlyoutItem> <FlyoutItem Route="RegisterFlyout"> <ShellContent Route="Register" ContentTemplate="{DataTemplate page:RegisterPage}" /> </FlyoutItem>
2. from first shellcontent page try to:
Shell.Current.GoToAsync("Register",false); it will give Timeout exceeded exception in main,cs
Expected Behavior
as it was in all pre-releases<10 it should navigate to the register page
Actual Behavior
exception
Basic Information
Last known good version: pre 9
The text was updated successfully, but these errors were encountered: