Luca Lupo:
It seems that when it reached MainServlet.java (method service) the request is already there, with elements such as layoutID, so that means something has to create such Request.
What I have to do is the following, when someone inserts a URL like this:
http://virtualhost.com/en/pageurl
liferay has to consider that the real URL would be http://virtualhost.com/en/web/community_name/pageurl
If it is the case, then write your logic in ServicePreAction and redirect to that particular community adding "web/<community-name>" before that pare url.
But if you have lot of community in your portal, then how you would achieve this..?
- Gnaniyar Zubair
Please sign in to flag this as inappropriate.