<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>redirect after succesful login</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=267391" />
  <subtitle>redirect after succesful login</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=267391</id>
  <updated>2026-04-04T20:17:55Z</updated>
  <dc:date>2026-04-04T20:17:55Z</dc:date>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112260025" />
    <author>
      <name>Mahammad Ashik A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112260025</id>
    <updated>2019-02-07T11:19:23Z</updated>
    <published>2019-02-07T11:19:23Z</published>
    <summary type="html">create a new componenet class. Then add below the codes.. Its working fine for me.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import javax.servlet.http.HttpSession;&lt;br /&gt;&lt;br /&gt;import org.osgi.service.component.annotations.Component;&lt;br /&gt;&lt;br /&gt;import com.liferay.portal.kernel.events.ActionException; &lt;br /&gt;import com.liferay.portal.kernel.events.LifecycleAction; &lt;br /&gt;import com.liferay.portal.kernel.events.LifecycleEvent;&lt;br /&gt;import com.liferay.portal.kernel.struts.LastPath;&lt;br /&gt;import com.liferay.portal.kernel.util.StringPool;&lt;br /&gt;import com.liferay.portal.kernel.util.WebKeys;&lt;br /&gt;&lt;br /&gt;@Component(&lt;br /&gt;        immediate = true, &lt;br /&gt;        property = { &amp;#34;key=login.events.post&amp;#34; }, &lt;br /&gt;        service = LifecycleAction.class&lt;br /&gt;    )&lt;br /&gt;&lt;br /&gt;public class PreLogin implements LifecycleAction {&lt;br /&gt;    public void processLifecycleEvent(LifecycleEvent lifecycleEvent) throws ActionException {&lt;br /&gt;        final HttpSession session = lifecycleEvent.getRequest().getSession();&lt;br /&gt;        String path=&amp;#34;/web/guest/&amp;lt;page-name&amp;gt;&amp;#34;;&lt;br /&gt;        LastPath lastpath=new LastPath(StringPool.BLANK, path);&lt;br /&gt;        session.setAttribute(WebKeys.LAST_PATH, lastpath);&lt;br /&gt;   &lt;br /&gt;        &lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;}</summary>
    <dc:creator>Mahammad Ashik A</dc:creator>
    <dc:date>2019-02-07T11:19:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112156204" />
    <author>
      <name>Mahammad Ashik A</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112156204</id>
    <updated>2019-01-28T13:25:28Z</updated>
    <published>2019-01-28T13:25:28Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able open below link.&lt;/p&gt;
&lt;p&gt;please help me.&lt;/p&gt;
&lt;p&gt;Thank you..&lt;/p&gt;</summary>
    <dc:creator>Mahammad Ashik A</dc:creator>
    <dc:date>2019-01-28T13:25:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12194870" />
    <author>
      <name>Manikandan S</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12194870</id>
    <updated>2012-01-23T08:31:36Z</updated>
    <published>2012-01-23T08:31:36Z</published>
    <summary type="html">Follow this  &lt;a href="http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Custom+redirect+after+login"&gt;link&lt;/a&gt; should work.</summary>
    <dc:creator>Manikandan S</dc:creator>
    <dc:date>2012-01-23T08:31:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12179386" />
    <author>
      <name>Firas BD</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=12179386</id>
    <updated>2012-01-20T15:09:08Z</updated>
    <published>2012-01-20T15:09:08Z</published>
    <summary type="html">Hey do u can please explain to me how to do that, I want after logging successefully, that the user logged be redirected to his private page home. How to do that? Any help</summary>
    <dc:creator>Firas BD</dc:creator>
    <dc:date>2012-01-20T15:09:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10614676" />
    <author>
      <name>Ash J</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10614676</id>
    <updated>2011-08-30T12:16:53Z</updated>
    <published>2011-08-30T12:16:53Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;I solved the problem myself by setting it in the below page&lt;br /&gt;&lt;br /&gt;Portal -&amp;gt; Settings -&amp;gt; General -&amp;gt; Navigation&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;-ash</summary>
    <dc:creator>Ash J</dc:creator>
    <dc:date>2011-08-30T12:16:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10614622" />
    <author>
      <name>Ash J</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10614622</id>
    <updated>2011-08-30T12:07:22Z</updated>
    <published>2011-08-30T12:07:22Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;Thanks for the information, but it does not work for me. &lt;br /&gt;&lt;br /&gt;I&amp;#39;m trying to forward to a page after logging in, and I have specified the line &lt;br /&gt;&amp;#34;default.landing.page.path=/web/guest/dashboard&amp;#34;&lt;br /&gt;in my portal-ext.properties file. But, still it does not get redirected to the page. After logging in also, it remains in the welcome page. &lt;br /&gt;&lt;br /&gt;Please help.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;-ash</summary>
    <dc:creator>Ash J</dc:creator>
    <dc:date>2011-08-30T12:07:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=268056" />
    <author>
      <name>Roman Hoyenko</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=268056</id>
    <updated>2007-11-12T20:06:20Z</updated>
    <published>2007-11-12T20:06:20Z</published>
    <summary type="html">No, you can create a page, put wsrp portlet there. Then you assign FriendlyURL in page properties and put it into your default page.</summary>
    <dc:creator>Roman Hoyenko</dc:creator>
    <dc:date>2007-11-12T20:06:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=267622" />
    <author>
      <name>Chicon Samu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=267622</id>
    <updated>2007-11-12T18:21:49Z</updated>
    <published>2007-11-12T18:21:49Z</published>
    <summary type="html">Thanks, I know this page, but how do I get for example to the wsrp portlet? Please can you give me an example, how it works!&lt;br /&gt;Do I have to write: default.landing.page.path=/c/portal/wsrp??</summary>
    <dc:creator>Chicon Samu</dc:creator>
    <dc:date>2007-11-12T18:21:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=267523" />
    <author>
      <name>Roman Hoyenko</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=267523</id>
    <updated>2007-11-12T17:48:56Z</updated>
    <published>2007-11-12T17:48:56Z</published>
    <summary type="html">Look here:&lt;br /&gt;&lt;br /&gt;http://wiki.liferay.com/index.php/Customizing_the_default_page_after_login&lt;br /&gt;&lt;br /&gt;default.landing.page.path=/web/guest/home</summary>
    <dc:creator>Roman Hoyenko</dc:creator>
    <dc:date>2007-11-12T17:48:56Z</dc:date>
  </entry>
  <entry>
    <title>redirect after succesful login</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=267390" />
    <author>
      <name>Chicon Samu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=267390</id>
    <updated>2007-11-12T16:46:41Z</updated>
    <published>2007-11-12T16:46:41Z</published>
    <summary type="html">I need help: I followed the instructions on http://wiki.liferay.com/index.php/Custom_redirect_after_login to redirect to another page after succesful login, but it doesn&amp;#39;t work. Can you give me a working example to redirect after successful login to e.g. the wsrp portlet, what do I have to do to approve this!</summary>
    <dc:creator>Chicon Samu</dc:creator>
    <dc:date>2007-11-12T16:46:41Z</dc:date>
  </entry>
</feed>
