<?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>Default Landing Page</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4018289" />
  <subtitle>Default Landing Page</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4018289</id>
  <updated>2026-05-11T15:19:31Z</updated>
  <dc:date>2026-05-11T15:19:31Z</dc:date>
  <entry>
    <title>RE: Default Landing Page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4059165" />
    <author>
      <name>Jonas Yuan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4059165</id>
    <updated>2009-09-23T16:40:32Z</updated>
    <published>2009-09-23T16:40:32Z</published>
    <summary type="html">Hi macro, &lt;br /&gt;&lt;br /&gt;You can see real example with hooks&lt;br /&gt;&lt;br /&gt;at (Chapter 10)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Liferay-Portal-5-2-Systems-Development/dp/1847194702"&gt;Liferay-Portal-5-2-Systems-Development&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;General information&lt;br /&gt;&lt;br /&gt;http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Jonas Yuan&lt;br /&gt;&lt;a href="http://www.liferay.com/web/jonas.yuan/blog/-/blogs/liferay-book:-liferay-portal-5-2-systems-development"&gt;Liferay Portal 5.2 Systems Development&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.packtpub.com/building-liferay-portal-enterprise-intranets/book"&gt;Liferay Portal Enterprise Intranets&lt;/a&gt;</summary>
    <dc:creator>Jonas Yuan</dc:creator>
    <dc:date>2009-09-23T16:40:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: Default Landing Page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4059153" />
    <author>
      <name>Marco Bolzan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4059153</id>
    <updated>2009-09-23T16:29:09Z</updated>
    <published>2009-09-23T16:29:09Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Sorry, I didn't understand more or less nothing.. :-)&lt;br&gt;Now I solve:&lt;br&gt;&lt;br&gt;In /so-portlet/WEB-INF/classes/portal.properties comment&lt;br&gt;&lt;pre&gt;&lt;code&gt;#auth.forward.by.last.path=false
#login.events.post=com.liferay.so.hook.events.LoginPostAction&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;in /ROOT/WEB-INF/classes/portal-ext.properties add&lt;br&gt;&lt;pre&gt;&lt;code&gt;default.landing.page.path=/web/communitydiprogetto/home
login.events.post=com.liferay.portal.events.DefaultLandingPageAction
auth.forward.by.last.path=true&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Now after login I'm redirect where I wanted..&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;Bolzan&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Marco Bolzan</dc:creator>
    <dc:date>2009-09-23T16:29:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: Default Landing Page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4058957" />
    <author>
      <name>Marco Bolzan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4058957</id>
    <updated>2009-09-23T15:37:44Z</updated>
    <published>2009-09-23T15:37:44Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;If is not out of topic, can you explain me better what is "hooks" of so-portlet ?&lt;br&gt;&lt;br&gt;We use only SO 1.5b for now..&lt;br&gt;&lt;br&gt;Thank u v much&lt;br&gt;&lt;br&gt;&lt;br&gt;And answering to your suggest, adding &lt;br&gt;&lt;pre&gt;&lt;code&gt;login.events.post=com.liferay.so.hook.events.LoginPostAction&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;to portal-ext.properties file doesn't resolve my problem,&lt;br&gt;after login I reach always "/web/admin/home" and not "/web/communitydiprogetto/home"&lt;br&gt;&lt;br&gt;Bolzan&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Marco Bolzan</dc:creator>
    <dc:date>2009-09-23T15:37:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Default Landing Page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4037791" />
    <author>
      <name>Jonas Yuan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4037791</id>
    <updated>2009-09-17T22:26:13Z</updated>
    <published>2009-09-17T22:26:13Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Marco, &lt;br&gt;&lt;br&gt;The following code shows the reason:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
public class LoginPostAction extends Action {

	public void run(HttpServletRequest request, HttpServletResponse response) {
		try {
			User user = PortalUtil.getUser(request);

			String redirect = "/web/" + user.getScreenName() + "/home";

			response.sendRedirect(redirect);
		}
		catch (Exception e) {
			if (_log.isWarnEnabled()) {
				_log.warn(e);
			}
		}
	}

	private static Log _log =
		LogFactoryUtil.getLog(LoginPostAction.class);

}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;You can disable it by commenting out the following line in portal.properties of so-portlet.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;login.events.post=com.liferay.so.hook.events.LoginPostAction&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Hope that it helps&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;Jonas Yuan&lt;br&gt;&lt;a href="http://www.liferay.com/web/jonas.yuan/blog/-/blogs/liferay-book:-liferay-portal-5-2-systems-development"&gt;Liferay Portal 5.2 Systems Development&lt;/a&gt;&lt;br&gt;&lt;a href="http://www.packtpub.com/building-liferay-portal-enterprise-intranets/book"&gt;Liferay Portal Enterprise Intranets&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Jonas Yuan</dc:creator>
    <dc:date>2009-09-17T22:26:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Default Landing Page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4037740" />
    <author>
      <name>Jonas Yuan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4037740</id>
    <updated>2009-09-17T22:13:50Z</updated>
    <published>2009-09-17T22:13:50Z</published>
    <summary type="html">Hi Marco, &lt;br /&gt;&lt;br /&gt;Which version are you using? Portal 5.2.x? Social Office 1.5b?&lt;br /&gt;&lt;br /&gt;Some behaviors would be different in both Portal and SO, since hooks are applied in SO.&lt;br /&gt;&lt;br /&gt;Just verifying similar scenario in SO 1.5b, it is working fine at&lt;br /&gt;&lt;br /&gt;Server URL:  &lt;br /&gt;&lt;a href="http://liferay.cignex.com:9090"&gt;http://liferay.cignex.com&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;An account from LDAP:&lt;br /&gt;&lt;em&gt;jane/jane&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Or create new account on fly.&lt;br /&gt;&lt;br /&gt;Oh, one second, I got the same - due to the hooks of so-portlet.&lt;br /&gt;&lt;br /&gt;Jonas Yuan&lt;br /&gt;&lt;a href="http://www.liferay.com/web/jonas.yuan/blog/-/blogs/liferay-book:-liferay-portal-5-2-systems-development"&gt;Liferay Portal 5.2 Systems Development&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.packtpub.com/building-liferay-portal-enterprise-intranets/book"&gt;Liferay Portal Enterprise Intranets&lt;/a&gt;</summary>
    <dc:creator>Jonas Yuan</dc:creator>
    <dc:date>2009-09-17T22:13:50Z</dc:date>
  </entry>
  <entry>
    <title>Default Landing Page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4018288" />
    <author>
      <name>Marco Bolzan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4018288</id>
    <updated>2009-09-14T09:46:28Z</updated>
    <published>2009-09-14T09:46:28Z</published>
    <summary type="html">On Control Panel &amp;gt; Portal &amp;gt; Settings &amp;gt; General I found a field &amp;#34;Default Landing Page&amp;#34;,&lt;br /&gt;tooltip suggests that path will be the path on where a user is redirect after login.&lt;br /&gt;&lt;br /&gt;I create a site named &amp;#34;communityproject&amp;#34; and I write in landing filed &amp;#34;/web/communityproject/home&amp;#34;,&lt;br /&gt;but when I login with my user (that is member of this community) I&amp;#39;m redirect on &amp;#34;/web/marco/home&amp;#34;,&lt;br /&gt;&lt;br /&gt;why?&lt;br /&gt;which comfigurations I have to check also?&lt;br /&gt;&lt;br /&gt;Thanks</summary>
    <dc:creator>Marco Bolzan</dc:creator>
    <dc:date>2009-09-14T09:46:28Z</dc:date>
  </entry>
</feed>
