well, oddly enough, mine looks like this:
<!--- Add the event ---> <cfset link = link & arguments.event /> <!--- Add values ---> <cfloop list="#arguments.append#" index="i"> <cfif isStruct(arguments.preferredContext) and structKeyExists(arguments.preferredContext, i)> <cfset link = link & "&#i#=#urlEncodedFormat(arguments.preferredContext[i])#" /> <cfelse> <cfset link = link & "&#i#=#urlEncodedFormat(arguments.eventContext.getValue(i))#" /> </cfif> </cfloop> See how your version has: <cfset link = link & "&#i#=#urlEncodedFormat(arguments.eventContext.getValue(i))#" /> and mine has: <cfset link = link & "&#i#=#urlEncodedFormat(arguments.eventContext.getValue(i))#" /> I guess that is where the & is coming from. I spot checked a few versions of the code I have in my branch (from as early as 2007) and all the code uses the <cfset link = link & "&#i#=#urlEncodedFormat(arguments.eventContext.getValue(i))#" /> Try changing the & to & in your file, reloading your framework and then trying your call again. DW <!--- Add anchor ---> <cfif len(arguments.anchor)> <cfset link = link & "###arguments.anchor#" /> </cfif> On Thu, Aug 18, 2011 at 1:07 PM, Irvin Wilson <[email protected]> wrote: > It looks like this: > > <!--- Add values ---> > <cfloop list="#arguments.append#" index="i"> > <cfif isStruct(arguments.preferredContext) and > structKeyExists(arguments.preferredContext, i)> > <cfset link = link & > "&#i#=#urlEncodedFormat(arguments.preferredContext[i])#" /> > <cfelse> > <cfset link = link & > "&#i#=#urlEncodedFormat(arguments.eventContext.getValue(i))#" /> > </cfif> > </cfloop> > > <!--- Add anchor ---> > <cfif len(arguments.anchor)> > <cfset link = link & "###arguments.anchor#" /> > </cfif> > > After that I cfoutput #link# and it looks correct. Where would it get > changed after that? > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > -- Plutarch - "The mind is not a vessel to be filled but a fire to be kindled." -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
