Page 1 of 1

cms_selflink urlparam urlencodes ? and = (in UDT)

Posted: Tue Nov 15, 2011 3:36 am
by rotezecke
i reported this as a bug only to be told that it works fine elsewhere.

Code: Select all

{cms_selflink page="testing" text="Hi there" urlparam="?models=G"}
used to produce links like:

http://test.wallaby.nimfm.org/products/ ... l?models=G

since 1.10 it does:

http://test.wallaby.nimfm.org/products/ ... models%3DG

i also use this code in a UDT where it performs likewise:

Code: Select all

 
 $smarty = cmsms()->GetSmarty();
 $smarty_data = "{cms_selflink page=\"$pageAlias\" text=\"$letter\" urlparam=\"?models=$letter\" more=\"rel='nofollow'\"}";
  $smarty->_compile_source('temporary template', $smarty_data, $_compiled );
  @ob_start();
  $smarty->_eval('?>' . $_compiled);
  $_contents = @ob_get_contents();
  @ob_end_clean();
  echo '<li>'.trim($_contents).'</li>';

Any idea

Re: cms_selflink urlparam urlencodes ? and = (in UDT)

Posted: Tue Nov 15, 2011 3:18 pm
by MantaPro

Re: cms_selflink urlparam urlencodes ? and = (in UDT)

Posted: Tue Nov 15, 2011 6:33 pm
by rotezecke