title: Xamarin: Redirect for login and return to same page
body: <p>In my app for both iOS and Android to perform certain features in a list view, i want the user to go back to login page if they are not logged in. Once they are logged in, i want them to come back to the same item in the list view they were before.</p>
  
  <p>Can i get some piece of code for that? </p>
  
  <p>UPDATE:</p>
  
  <p>I am using MVVMCross &amp; want to let the user post comments to the items displayed in list view only if he is logged in.</p>
  
  <p>My code:</p>
  
  <pre><code>private async void PostIfLoggedIn(bool AddCmnt)
  {
   //..
  await GotoLogin();
  //..        
  }
  
  Task&lt;bool&gt; GotoLogin()
  {
  //..
  }
  </code></pre>
  
  <p>But, once it goes to login page, all the data from current page is lost. I want to somehow save the current info and as soon as the user is logged in I want to let him post.</p>
  
  <p>Current scenario: Once the user is logged in, the whole page is refreshed and he has to again come down to the item he wanted to comment and proceed.</p>