dswitzer
01/28/2022, 6:01 PMx
ends up getting encoded twice:
<cflocation url="/index.cfm?#(len(x) ? '&x=' & encodeForUrl(x) : '')#" />
However, if I change the code to:
<cfset y = "/index.cfm?#(len(x) ? '&x=' & encodeForUrl(x) : '')#" />
<cflocation url="#y#" />
I get the expected results.
It looks like Lucee is sometimes automatically encoding strings in the <cflocation /> tag, but ACF does not do that.
What is the expected behavior?dswitzer
01/28/2022, 6:37 PMdswitzer
01/28/2022, 7:05 PM