Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How do I get the previous page in MAUI Blazor Hybrid and navigate to it?

$
0
0

I am currently developing an app using MAUI Blazor. On one of my pages, I have a back button due to the navbar being hidden on this page and trying to cater for platforms that don't have a back button. This page can be accessed from a few areas so I want the button to go back to the previous page and not just to a specific page.

I cannot find any way of getting the previous page from the history or something. I'm using Blazor navigation for this with NavigationManager but cannot find any properties anywhere or an alternative method of NavigateTo which supports going backwards.

Any help would be greatly appreciated.

I considered passing the current URI through as a parameter to the page however this wouldn't work to my knowledge as the Back button and it's function doesn't actually sit on the page but instead sits on the page's layout page.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>