RE: Hide Parameters in Friendly URL

pradip choudhari, modified 5 Years ago. Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Guys , 
While working with friendly URL how can we hide parameters which are using in renderURL , we cannot use  <ignored-parameter> , because I want to use those Parameters in Controller for further activity 
pradip choudhari, modified 5 Years ago. Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi guys , anyone having idea on it ?
thumbnail
Russell Bohl, modified 5 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts
pradip choudhari, modified 5 Years ago. Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Russel , 
Thanks for valuable suggestion . 
As per Liferay Document - 

Use  <implicit-parameter>tags to define parameters that are always the same for the URL. For example, for a render URL, you can be certain that the p_p_lifecycle parameter is always 0.

so , we cannot use implicit parameters to our generated parameters . 

you are having any other approach ?

Thanks & Regards, 
Pradip 
thumbnail
Russell Bohl, modified 5 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts
I have very little experience with Friendly URLs, so these are just random thoughts popping into my head:
In your controller, is there a way to get the URL as it would appear before processing by the Friendly URL service?
So you could ignore the parameter in your friendly URL but still get it otherwise? Sorry, my ignorance is likely showing here.
pradip choudhari, modified 5 Years ago. Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Russell , 

again thanks for suggestion ..

I tried to get the original URL through themeDisplay obj. , but it gives friendly URL, so this approach not worked for us . 
You are having any other solution ?

Thanks & Regards, 
Pradip
thumbnail
Russell Bohl, modified 5 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts
Another guess: What about the asset renderer getters?
pradip choudhari, modified 5 Years ago. Junior Member Posts: 59 Join Date: 5/10/19 Recent Posts
Hi Russell , 
Thanks for suggestion . 
I am not aware of asset renderer getters concepts . 
But 1 good thing I am getting now , that I am sharing here , 
If I am putting  my  params in generated-parameter without defining them on pattern , I am getting those values in Controller . 
so , I think using <generated-parameter> we will get our result . 
But in another portlet , this approach not worked , I am checking now . If I got any solution definately I will share the answer 

Thanks & Regards, 
​​​​​​​Pradip