We have a ASP.NET login control in our aspx:
<asp:Login ID="LogOnControl" runat="server" OnLoginError="OnLogOnError" OnLoggedIn="OnLoggedIn">
and in OnLoggedIn we do:
protected void OnLoggedIn(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Request.QueryString["ReturnUrl"]))
{
Response.Redirect(Request.QueryString["ReturnUrl"]);
}
}
and our ReturnUrl should be something like Default.aspx#/Projects
The problem is that all after hash is trimmed. We need to pass entire URL to server (so encode it somehow).