Member Homepage

Topics: Customizing Orchard, General
May 30, 2011 at 8:21 PM
Edited May 30, 2011 at 8:25 PM

Hi,

When my website users (i.e. members) logon to the site, I want them to be redirected to another member homepage (profile page). And if a member browses to the main homepage again he should be redirected to the member homepage.

When he logs off he will then have access to the public homepage.

How can I handle this situation?

 

The public homepage is a content item page (created via admin interface). I added the following script at the top of the custom layout page in my theme. I wonder if this is a good approach or not.

 

 

@{
    
    if (Request.IsAuthenticated)
    {
        Response.Redirect("/member/home");
    }
}

 

 

Thank you!

Jun 1, 2011 at 5:14 PM

Thanks to Chris Bower who directed me to use an ActionFilter to accomplish this task.