Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:rewite inconsistent behaviour

 
Ronwaldo Cruz
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I am using Liferay portal and I use html:rewrite to rewrite the URL for my portlets.

In my first portlet, it is working fine. But in my second portlet for some reason the behaviour of html:rewrite has changed.

For instance using the code:

<html:rewrite page="http://www.google.com?jeff=4"/>

the first portlet successfully renders:

http://localhost:8080/c/portal/layout?p_l_id=PRI.15.2&p_p_id=TrainingManagement_WAR_trainingmgmt&p_p_action=0&p_p_state=normal&p_p_mode=view&p_p_col_id=&p_p_col_pos=0&p_p_col_count=0&_TrainingManagement_WAR_trainingmgmt__spage=http%3A%2F%2Fwww.google.com%3Fjeff%3D4&_TrainingManagement_WAR_trainingmgmt_jeff=4

however the second portlet renders:
http://localhost:8080/c/portal/layout?p_l_id=PRI.15.2&p_p_id=TrainingGroup_WAR_traininggroup&p_p_action=0&p_p_state=normal&p_p_mode=view&p_p_col_id=&p_p_col_pos=0&p_p_col_count=0&_TrainingGroup_WAR_traininggroup__spage=http%3A%2F%2Fwww.google.com%3Fjeff%3D4%26jeff%3D4

Would anybody know what could trigger a difference in behaviour between the two portlets who basically have the same code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic