Skip to content
Snippets Groups Projects
Commit 372d3655 authored by Graham Cole's avatar Graham Cole
Browse files

stop url components being escaped too early and breaking the breadcrumb links

parent 888d2536
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function smarty_function_buildpath($params, &$smarty) { function smarty_function_buildpath($params, &$smarty) {
if ($params['item']=="") return "/"; if ($params['item']=="") return "/";
foreach ($params['list'] as $crumb) { foreach ($params['list'] as $crumb) {
if ($crumb!="") $output.="/".$crumb; if ($crumb!="") $output.="/".rawurlencode($crumb);
if ($crumb==$params['item']) return $output; if ($crumb==$params['item']) return $output;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{if $pathlist} {if $pathlist}
<ul> <ul>
{foreach name=pathlist from=$pathlist key=key item=item} {foreach name=pathlist from=$pathlist key=key item=item}
<li>{if !$smarty.foreach.pathlist.first}{if $item!=""}&gt; {/if}{/if}{if !$smarty.foreach.pathlist.last}<a href="{buildpath list=$pathlist item=$item|escape:'url'}">{/if}{if $item}{$item|escape:'htmlall'}{else}{if $smarty.foreach.pathlist.first}SUCS{/if}{/if}{if !$smarty.foreach.pathlist.last}</a>{/if}</li> <li>{if !$smarty.foreach.pathlist.first}{if $item!=""}&gt; {/if}{/if}{if !$smarty.foreach.pathlist.last}<a href="{buildpath list=$pathlist item=$item}">{/if}{if $item}{$item|escape:'htmlall'}{else}{if $smarty.foreach.pathlist.first}SUCS{/if}{/if}{if !$smarty.foreach.pathlist.last}</a>{/if}</li>
{/foreach} {/foreach}
</ul> </ul>
{/if} {/if}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment