How do I have master details page and a back button on single page
<p>I have app where in I have master details page something like this:<a href="https://i.stack.imgur.com/Lh47G.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lh47G.jpg" alt="img"></a>
I would have this(left menu bar settings, login) static for all the pages. Since I am using master details page I am using messagingcenter to navigate between pages as given <a href="https://stackoverflow.com/questions/36172577/xamarin-forms-with-masterdetails-page-and-navigation">here</a>:</p>

<pre><code>MessagingCenter.Send(new RedirectClass.OpenDetails(), RedirectClass.OpenDetails.Key);
</code></pre>

<p>But now since I have used master details I cannot  navigate back using back button. The back button would exit the application. Say user is at 'page A', When user clicks on settings menu the user should be redirected to settings page(settings page will all have left menu), so on click of back button on settings page should redirect user to 'Page A'. Which is not happening. ANy help?</p>

<pre><code>MessagingCenter.Subscribe&lt;RedirectClass.OpenDetails&gt;(this, RedirectClass.OpenDetails.Key, (sender) =&gt;
            {
                Detail = new NavigationPage(new Details())
                {
                    BarBackgroundColor = Color.FromRgb(172, 183, 193),
                    BarTextColor = Color.Black,
                    BackgroundColor = Color.White
                };
            });
</code></pre>