Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Shell.Current.Navigation.PopAsync() #14008

Open
EvgenyPrikhodko opened this issue Mar 13, 2021 · 9 comments
Open

Shell.Current.Navigation.PopAsync() #14008

EvgenyPrikhodko opened this issue Mar 13, 2021 · 9 comments
Labels
a/navigation a/shell 🐚 p/Android s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛

Comments

@EvgenyPrikhodko
Copy link

EvgenyPrikhodko commented Mar 13, 2021

Xamarin Forms, test in Andriod SDK10
Xamarin.Forms 5.0.0.2012 ERROR

 await Shell.Current.Navigation.PopAsync();

System.ArgumentException
  Message=Ambiguous routes matched for: //Flyout/IMPL_ProjectsPage/ProjectsPage/FoldersPage matches found: //Flyout/IMPL_ProjectsPage/ProjectsPage/FoldersPage,//Flyout/IMPL_ProjectsPage/ProjectsPage/FoldersPage
Parameter name: uri
ShellUriHandler.GetNavigationRequest (Xamarin.Forms.Shell shell, System.Uri uri, System.Boolean enableRelativeShellRoutes, System.Boolean throwNavigationErrorAsException, Xamarin.Forms.ShellNavigationParameters shellNavigationParameters) D:\a\1\s\Xamarin.Forms.Core\Shell\ShellUriHandler.cs:207
ShellNavigationManager.GoToAsync (Xamarin.Forms.ShellNavigationParameters shellNavigationParameters) D:\a\1\s\Xamarin.Forms.Core\Shell\ShellNavigationManager.cs:44
ShellSection+NavigationImpl.OnPopAsync (System.Boolean animated) D:\a\1\s\Xamarin.Forms.Core\Shell\ShellSection.cs:1070


Xamarin.Forms 5.0.0.1931 There is no mistake

@EvgenyPrikhodko EvgenyPrikhodko added s/unverified New report that has yet to be verified t/bug 🐛 labels Mar 13, 2021
@jsuarezruiz
Copy link
Contributor

@EvgenyPrikhodko Could you attach a small sample where reproduce the issue?, could you share the registered routes?, happens on Android and not on iOS?

@jsuarezruiz jsuarezruiz added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Mar 23, 2021
@mYoda
Copy link

mYoda commented Apr 23, 2021

I have the same issue. in Android and iOS.

@nysand
Copy link

nysand commented May 11, 2021

System.ArgumentException Message=Ambiguous routes matched for: //main/IMPL_dashboard/dashboard/tasks matches found: //main/IMPL_dashboard/dashboard/tasks,//main/IMPL_dashboard/dashboard/tasks Parameter name: uri
I had the same issue yesterday when I upgraded to XF 5.0.0.2012 and yes downgrading to XF 5.0.0.1931 worked for me as well.

@Redth Redth removed the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label May 11, 2021
@aleksandrsmyk
Copy link

I got the same issue

@valentasm1
Copy link

valentasm1 commented Jul 6, 2021

I was getting same issue when navigated to page await Shell.Current.Navigation.PushAsync(popUpPage); then to next one using Shell.Current.GoToAsync and from current one i used to do and then issue occurs.

await Shell.Current.Navigation.PopAsync();

If i use PushAsync all the way issue dissapears.

@babe0911
Copy link

babe0911 commented Oct 3, 2021

Register the root of the shell only once. In my case, I had a similar problem because I had registered the route in both xaml and code-behind.
I only registered the route in xaml and it works fine.

@hetcmnten
Copy link

hetcmnten commented Aug 24, 2022

Register the root of the shell only once. In my case, I had a similar problem because I had registered the route in both xaml and code-behind. I only registered the route in xaml and it works fine.

I only register my bottom tab on code behide but still have this problem

@nabilakhlaque
Copy link

nabilakhlaque commented Mar 26, 2023

having same issue...

I have attached a small sample where I have reproduced this issue.
https://github.com/nabilakhlaque/Xamarin-forms-navigation-issue

@premshahdev
Copy link

any update on this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/navigation a/shell 🐚 p/Android s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests