title: ASP.Net Web Forms LoginStatus Multiple LoginURL - suggestions?
body: <p>I am developing a multi-lingual website. I am determining the requested language via a querystring variable eg: <a href="http://mydomain.com/default.aspx?lang=en" rel="nofollow noreferrer">http://mydomain.com/default.aspx?lang=en</a></p>
  
  <p>I am using two <code>&lt;asp:LoginStatus /&gt;</code> controls in my masterpage. My web.config file is set up like this for forms authentication.</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
     &lt;forms loginUrl="~/login.aspx" protection="All" timeout="30" 
      name=".ASPXAUTH" path="/" requireSSL="false" 
      slidingExpiration="true" 
      defaultUrl="default.aspx" 
      cookieless="UseDeviceProfile" 
      enableCrossAppRedirects="false"/&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>Currently when you click on a <code>&lt;asp:LoginStatus /&gt;</code> you will be redirected to my login page and the url will look something like this: <a href="http://mydomain.com/login.aspx?ReturnUrl=%2fdefault.aspx%3flang%3den" rel="nofollow noreferrer">http://mydomain.com/login.aspx?ReturnUrl=%2fdefault.aspx%3flang%3den</a> </p>
  
  <p>What solutions are available to me so that I can append my lang variable to my login.aspx? depending on which language is currently active?</p>