How to change the default landing page in Alfresco
By default whenever a user logs in to Alfresco, the user dashboard is the first page displayed after login.
If you want the user to be redirected to the site dashboard upon login, follow the steps mentioned below:
Go to <ALFRESCO>/tomcat/webapps/share
cd /tomcat/webapps/share
Edit the site-index.jsp file
vi site-index.jsp
Change
// redirect to site or user dashboard as appropriate
String siteName = request.getParameter("site");
if (siteName == null || siteName.length() == 0)
{
// forward to user specific dashboard page
response.sendRedirect(request.getContextPath() "/page/user/" URLEncoder.encode(userid) "/dashboard");
}
else
{
// forward to site specific dashboard page
response.sendRedirect(request.getContextPath() "/page/site/" URLEncoder.encode(siteName) "/dashboard");
}
to
// redirect to site or user dashboard as appropriate
String siteName = "<SITENAME>";
if (siteName == null || siteName.length() == 0)
{
// forward to user specific dashboard page
response.sendRedirect(request.getContextPath() "/page/user/" URLEncoder.encode(userid) "/dashboard");
}
else
{
// forward to site specific dashboard page
response.sendRedirect(request.getContextPath() "/page/site/" URLEncoder.encode(siteName) "/dashboard");
}
Save and close. Logout and login again. The default landing page changes to the site you mentioned in the script.
Replace <SITENAME> with your site name.