cancel
Showing results for 
Search instead for 
Did you mean: 

change start page

thk
Champ on-the-rise
Champ on-the-rise
Hi,

By default every user get after login to their personal user dashboard.
I want now that all users after login get instead to another site.
How can I change this in the most easily way?

I`m using 5.0.d

Thanks in Advance.
4 REPLIES 4

niketapatel
Star Contributor
Star Contributor
You can change site-index.jsp located at - tomcat\webapps\share

comment out user dashboard redirection code. Below is site redirection code. If site is fixed one then provide site name.

<code>
// redirect to site or user dashboard as appropriate
   String siteName = request.getParameter("site");
  // forward to site specific dashboard page
  response.sendRedirect(request.getContextPath() + "/page/site/" + URLEncoder.encode(siteName) + "/dashboard");
<code>

muralidharand
Star Contributor
Star Contributor
Does the site exists within Alfresco Share or outside to Alfresco?
If so, then you're using Alfresco just for authentication purpose?
Please provide few more information.

niketapatel
Star Contributor
Star Contributor
Code snippet which I have provided is for Alfresco internal site.

thk
Champ on-the-rise
Champ on-the-rise
@niketapatel

thank you for helping, I adapted the code in the snippet and it works, so that now every user after login is directed first to a specfic site.