Jahia Dev Forum > How to shortten...

0 (0 Good)
0 (0 Bad)

Re: How to shortten portlet url

by  shuber »  2014/01/21 16:33

I don't recommend you integrate Liferay with Jahia as this will probably cause more problems than solve them. 

These long URLs are actually required by the portlet specification because state is passed in the URLs and it must be "replayable". Liferay's Friendly URLs just makes the state a bit more user friendly. 

If you have a strong requirement to solve this, I suggest you write your own PortalURLParser implementation, based on our own own (in org.jahia.services.applications.pluto.JahiaPortalURLParserImpl and referenced in the following spring file : http://subversion.jahia.org/svn/jahia/trunk/core/src/main/resources/org/jahia/defaults/config/spring/applicationcontext-plutodriver.xml

This way you will have full control over the URL generation and parsing. One solution might be to use the session to store some state, but then you will no longer be 100% portlet API compliant (which is also the case of the Liferay Friendly URL solution).

Best regards,

  Serge Huber.

Serge Huber (shuber)

Number of messages  271
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page