开发者

Liferay 6. Redirect users to their private page after login

How to redirect users to their private page after login? Now it goes to /web/guest/home I want to make this dynamic like /web/<user>/home. is开发者_StackOverflow there an easy way?


As far as I know, there is no "easy" way. You will need to write a login hook, that handles the redirect:

This is covered in several places of the Liferay Wiki:

  • http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/performing-a-custom-action
  • http://www.liferay.com/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login

It also pops up in the Liferay forum quite frequently:

  • http://www.liferay.com/community/forums/-/message_boards/message/267390#_19_message_267390
  • http://www.liferay.com/community/forums/-/message_boards/message/1814620#_19_message_1814620
  • http://www.liferay.com/community/forums/-/message_boards/message/6477579
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜