title: after federated authentication, redirect to originally requested url
body: <p>We've setup federated security using ThinkTecture server.</p>
  
  <p>When a user wishes to access a particular URL, they get redirected to the Identity Provider Server (IDP), they login, get authenticated.</p>
  
  <p>Then, the IDP server will redirect the user back to the "Redirect URL" specified in the configuration for that Relying Party.</p>
  
  <p>Instead, I want it to be redirected to the originally requested URL.</p>
  
  <p>Is this possible? I've read a little about the wreply parameter, but not sure how I use this and intercept the authentication levels calls on the original web server, before the redirect.</p>
  
  <p><strong>Update</strong>
  I've realised that my problem is due to my url containing a hash, e.g. <strong><a href="http://domain.com/#customer/123" rel="nofollow">http://domain.com/#customer/123</a></strong> and nothing after the hash is passed into the redirect url within WIF. See my answer below for more details.</p>