AnsweredAssumed Answered

Redirect Site Member to Site after Login

Question asked by sebastian1 on Sep 9, 2010
Latest reply on Jul 21, 2011 by fap99
Hello Guys,

I am trying to write a tiny code to redirect my users after Login to a specific Site.

Folder: %SYSROOT%\Alfresco\tomcat\webapps\share\site-index.jsp


   // forward to user specific dashboard page

   if (user.isMember(TestSite1)) {

    response.sendRedirect(request.getContextPath() + "/page/site/TestSite1/dashboard");

    } else {
       
   response.sendRedirect(request.getContextPath() + "/page/user/" + URLEncoder.encode(userid) + "/dashboard");

I want to redirect all User which are member of TestSite1 to this Site after Login.
The Members which aren't Member of the Site, I want to get redirected to the Users personal Dashboard.

Failure Output:


A problem has occurred.
This page could not be rendered:
site-index
Please notify your system administrator.


Where is my failure, am i using the wrong function?

Regards

Seb

Outcomes