The rule I have is
RewriteRule .*/go(/[^\?]*)(?:\?(.*))? /go.cfm\?path=/go$1&$2

That turns
/go/your/friendly/url?my=parameter
into
/go.cfm?path=/go/your/friendly/url&my=parameter

Blair

On 9/21/06, Derek Westfall <[EMAIL PROTECTED]> wrote:

I am using friendly URLS and building links with Skin:Buildlink.

For some links I want to pass parameters to the BuildLink function using the
stParameters attribute.

When I do this, the parameters get appended to the friendly URL with a ?
followed by the list of parameters.

However this breaks the friendly URL, which wants params appended with just
a &. Am I using the wrong rewrite filter, or is this a bug in
webskin/buildlink.cfm line 88?

Rewrite filter:

RewriteRule ^/go/(.*)$ /go.cfm?path=/go/$1 [L,PT]

Lines 96-82 of buildlink.cfm:

<!--- check for friendly url --->
<cfif application.config.plugins.fu>
        <!--- if FU is turned on then append extra URL parameters with a
leading '?' --->
        <cfset href = "" & "?" & stLocal.parameters>
<cfelse>
        <!--- if FU is turned off then append extra URL parameters with a
leading '&' as there will already be URL params ( i.e. "?objectid=") --->
        <cfset href = "" & "&" & stLocal.parameters>
</cfif>






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-dev" 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/farcry-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to