0

I have an anonymous access publishing site that has a 'Log In' link. I would like to redirect successfully authenticated users to a particular page.

So, a user could be looking at any page on the anonymous access public site, then they click log in, and if they authenticate correctly then they should be redirected to a specifc URL of my choosing.

Currently I am using Windows authentication, but it would be useful if it could also work for forms-based.

How can I do that?

1 Answer 1

1

If you change your signin url to include the source querystring and value to what you want they will be redirected:

For instance:

/_layouts/Authenticate.aspx?Source=%2F%5Flayouts%2Fimages%2Fblank%2Egif

that url will redirect the user to a blank image after authentication.

1
  • As a note to this answer, I was using the Welcome.ascx user control for the Sign In link, which autoredirects you to the page you were at when you clicked sign in. I've made my own Welcome control (based on the original) to change this behaviour.
    – ngm
    Nov 3, 2010 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.