cancel
Showing results for 
Search instead for 
Did you mean: 

Auto connecting to defined site

jaysavoor
Champ in-the-making
Champ in-the-making
Hi

I would like to automatically connect a user to the site we have created rather than their home page. Right now they have to click on the site.

Could anyone assist in this please?

1 REPLY 1

anshu_kumar
Star Contributor
Star Contributor
You can modify 'site-index.jsp' to redirect to the site instead of the user's dashboard. The file can be found under file path "\webapps\share\"

Simply change the line

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


to

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


This should redirect everyone to that particular site-dashboard on login.

Hope this helps.