title: Dynamically setting default url in asp.net forms authentication
body: <p>I have been trying to set the default url but it is not redirecting to the page that I want. The <code>defaultUrl="admin/Home.aspx"</code> is keeping redirecting back to the <code>login.aspx</code> can someone please help?</p>
  
  <p>Below is the code i am doing in the web.config</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="~/Login.aspx" timeout="20" defaultUrl="admin/Home.aspx" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>the url after being redirected is as follows</p>
  
  <pre><code>/Login.aspx?ReturnUrl=%2fadmin%2fHome.aspx
  </code></pre>
  
  <p>what do the <code>%2f</code> mean?</p>
  
  <p>Thanks</p>