-
DescriptionGiven the web-like routing metaphor used in MAUI, I was unpleasantly surprised by the fact that It seems there are two schools of though in this.
No matter which of these views you ascribe to, in both cases Both schools of thought will not expect it for these respective reasons:
Steps to Reproduce
You'll see that Link to public reproduction project repositoryI don't think a reproduction is necessary. This warrants a discussion on the desired behaviour. Version with bug7.0 (current) Last version that worked wellUnknown/Other Affected platformsAndroid, I was not able test on other platforms Affected platform versionsAndroid 12+ tested, but I think this is a general MAUI issue. Did you find any workaround?My colleague @Hobbes1987 came up with a workaround that works specifically for pages that you can route to, and that pop and push modals, but do not push and pop pages. This is good enough for me for now.
Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I'll link my comments here rather than duplicate as I believe what you describe here is the same as #10294.
Web apps and MAUI should not be construed to be identical in behavior because they share the same outward facing conceptual constructs (Uri). |
Beta Was this translation helpful? Give feedback.
-
@PureWeen FYI |
Beta Was this translation helpful? Give feedback.
-
Yea this makes sense. I think historically Now that all of the pages have The other area here that I think is a bit overloaded are I don't think we can just jump directly to no longer calling From the workaround you posted it seems like if you had a bit more contextual information that might also help? For example, can you use the NavigatedTo event on the Page? Could you use the Shell.Navigated event and then pass that context to the current page to indicate whether it was popped to and from? Honestly, I think there's a future here where the Navigating/Navigated events will gain parameters and then you can use these with non-shell pages as well. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I think I got a bit confused by the new web style routing that the appshell uses. Once you're in that line of thinking, and you're used to web design, your expectations can be way off. Should I close this issue, or should I leave it open as a discussion point? Clearly this is not a bug. More a potentially confusing aspect of the new routing, and potential ways to improve upon it. |
Beta Was this translation helpful? Give feedback.
Yeah, I think I got a bit confused by the new web style routing that the appshell uses. Once you're in that line of thinking, and you're used to web design, your expectations can be way off.
While I like the simplicity of
IQueryAttributable
, as @PureWeen says, the best way to get more context would probably be through theNaviging
/Navigated
events.Should I close this issue, or should I leave it open as a discussion point? Clearly this is not a bug. More a potentially confusing aspect of the new routing, and potential ways to improve upon it.