XF 2.1 String replace for $xf.uri

HJW

Active member
Now I'm using an addon that changes the query string I need to be able to strip this from $xf.uri.

I was hoping a quick string repace would do it, but the code I've written is not working

Code:
    <xf:set var="$urir">{{str_replace("?amp=1","",$xf.uri)}}</xf:set>

Am I going about this the wrong way?
 
Top Bottom