AnsweredAssumed Answered

change mainpage after login

Question asked by blodnatt on Feb 10, 2012
Latest reply on Apr 15, 2012 by acarpine
Hi Guys,

i want to change the mainpage after the login. i know, that i have to change the index-site.jsp
the user, who is in the project "xyz", be pass the site dashboard of this project.
if the user isn't in the project "xyz", than he passes his user dashboard.

i need a query like this:

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

Can anybody send me the write code for this query? i have no idea and i work with alfresco since 1 week  :oops:

Outcomes