I've set up friendly URL routing for my Liferay portlet, and it's working fine when I generate URLs with the standard JSP tags like so:
which, given my mapping, produces a lovely URL like:
But when I generate URLs using the JavaScript PortletURL module, I get the full unfriendly URL. For instance:
will generate
So the question is: How can I generate friendly URLs from JavaScript?
Solution : Here is the Hack - Just give it a try
then write javascript and replace param values like this -
And you have your friendly url ....
Your are just done, Try & Enjoy the function.....:)
|
Monday, 9 April 2012
Unable to create friendly url mapping with javascript in Liferay
Subscribe to:
Posts (Atom)