Liferay Portal 7.2 GA2 - Redirect user to SiteLiferay Portal 7.2 GA2 - Redirect user to Sitehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1196619142024-03-29T02:21:00Z2024-03-29T02:21:00ZRE: Liferay Portal 7.2 GA2 - Redirect user to SiteChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1196601952020-07-27T14:57:15Z2020-07-27T14:57:15ZWe usually add our own post login action to do that.<br />I cut a bit of sample code out of one of our modules to give you an idea how it would look like. If the logic isn't too complicated, it should be easy enough to implement.<br />@Component(<br /> immediate = true, property = {"key=login.events.post"},<br /> service = LifecycleAction.class<br />)<br />public class MyRedirectAction implements LifecycleAction {<br /> @Override<br /> public void processLifecycleEvent(LifecycleEvent lifecycleEvent) throws ActionException {<br /> User user = null;<br /> try {<br /> user = PortalUtil.getUser(lifecycleEvent.getRequest());<br /> } catch (PortalException e) {<br /> throw new ActionException(e);<br /> }<br /> String redirectURL = getRedirectURL(user);<br /> if (redirectURL != null) {<br /> try {<br /> lifecycleEvent.getResponse().sendRedirect(redirectURL);<br /> } catch (IOException e) {<br /> throw new ActionException(e);<br /> }<br /> }<br /> }<br />}Christoph Rabel2020-07-27T14:57:15ZLiferay Portal 7.2 GA2 - Redirect user to SiteFrancesco Francescohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1196619132020-07-27T13:58:20Z2020-07-27T13:58:20ZHi,<br />on Liferay Portal 7.2, I should redirect to my home site after logging in. Is there a way? i tried with the landing page but as they are filtered as only $ screenname and $ userid.<br />In practice I should redirect certain