Does the new release fix linkto issues with subfolders applications?

1 view
Skip to first unread message

Mike Henke

unread,
Nov 3, 2009, 11:40:52 AM11/3/09
to ColdFusion on Wheels
Example:

Server Path:
C:\JRun4\servers\dev\cfusion.ear\cfusion.war\application\staging

Actually URL (linkTo functions work fine):
http://dev/application/staging

Proxy redirect (or something I am not a network guy) to above URL
https://staging.com/application - loads fine but the LinkTo helper
function can't handle this. It tries https://staging.com/application/staging/some/thing/else
instead of https://staging.com/application/some/thing/else

Mike Henke

unread,
Nov 3, 2009, 1:49:01 PM11/3/09
to ColdFusion on Wheels
I upgraded to the newest release and I am still getting the wrong link
location with linkto for this situational.

On Nov 3, 11:40 am, Mike Henke <henkem...@gmail.com> wrote:
> Example:
>
> Server Path:
> C:\JRun4\servers\dev\cfusion.ear\cfusion.war\application\staging
>
> Actually URL (linkTo functions work fine):http://dev/application/staging
>
> Proxy redirect (or something I am not a network guy) to above URL https://staging.com/application- loads fine but the LinkTo helper

Chris Peters

unread,
Nov 3, 2009, 2:31:06 PM11/3/09
to cfwh...@googlegroups.com
This seems very odd to me. What do you get for #cgi.path_info#?

Mike Henke

unread,
Nov 4, 2009, 11:19:39 AM11/4/09
to ColdFusion on Wheels
Add onlyPath="false", to the linkTo helpers.

On Nov 3, 2:31 pm, Chris Peters <ch...@clearcrystalmedia.com> wrote:
> This seems very odd to me. What do you get for #cgi.path_info#?
>
> On Tue, Nov 3, 2009 at 1:49 PM, Mike Henke <henkem...@gmail.com> wrote:
>
> > I upgraded to the newest release and I am still getting the wrong link
> > location with linkto for this situational.
>
> > On Nov 3, 11:40 am, Mike Henke <henkem...@gmail.com> wrote:
> > > Example:
>
> > > Server Path:
> > > C:\JRun4\servers\dev\cfusion.ear\cfusion.war\application\staging
>
> > > Actually URL (linkTo functions work fine):http://dev/application/staging
>
> > > Proxy redirect (or something I am not a network guy) to above URL
> >https://staging.com/application-loads fine but the LinkTo helper
> > > function can't handle this.  It trieshttps://
> > staging.com/application/staging/some/thing/else
> > > instead ofhttps://staging.com/application/some/thing/else

Mike Henke

unread,
Nov 4, 2009, 11:49:37 AM11/4/09
to ColdFusion on Wheels
Looks like any helper tags referring the a url/path needs this option
such as imageTag, javaScriptIncludeTag, and styleSheetLinkTag. There
might be more but those are the ones, I noticed.

I wonder if it should be implemented like this

#imageTag(onlyPath="false",source="clearpixel.gif")#

currently generates this which is wrong through the proxy:
https://staging.com/application/staging/images/clearpixel.gif

should be:
https://staging.com/proxyToStagingFolder/images/clearpixel.gif

On Nov 4, 11:19 am, Mike Henke <henkem...@gmail.com> wrote:
> Add onlyPath="false", to the linkTo helpers.
>
> On Nov 3, 2:31 pm, Chris Peters <ch...@clearcrystalmedia.com> wrote:
>
> > This seems very odd to me. What do you get for #cgi.path_info#?
>
> > On Tue, Nov 3, 2009 at 1:49 PM, Mike Henke <henkem...@gmail.com> wrote:
>
> > > I upgraded to the newest release and I am still getting the wrong link
> > > location with linkto for this situational.
>
> > > On Nov 3, 11:40 am, Mike Henke <henkem...@gmail.com> wrote:
> > > > Example:
>
> > > > Server Path:
> > > > C:\JRun4\servers\dev\cfusion.ear\cfusion.war\application\staging
>
> > > > Actually URL (linkTo functions work fine):http://dev/application/staging
>
> > > > Proxy redirect (or something I am not a network guy) to above URL
> > >https://staging.com/application-loadsfine but the LinkTo helper

Mike Henke

unread,
Nov 4, 2009, 11:56:49 AM11/4/09
to ColdFusion on Wheels
Created ticket - http://code.google.com/p/cfwheels/issues/detail?id=309

On Nov 4, 11:49 am, Mike Henke <henkem...@gmail.com> wrote:
> Looks like any helper tags referring the a url/path needs this option
> such as imageTag, javaScriptIncludeTag, and styleSheetLinkTag.  There
> might be more but those are the ones, I noticed.
>
> I wonder if it should be implemented like this
>
> #imageTag(onlyPath="false",source="clearpixel.gif")#
>
> currently generates this which is wrong through the proxy:https://staging.com/application/staging/images/clearpixel.gif
>
> should be:https://staging.com/proxyToStagingFolder/images/clearpixel.gif
>
> On Nov 4, 11:19 am, Mike Henke <henkem...@gmail.com> wrote:
>
> > Add onlyPath="false", to the linkTo helpers.
>
> > On Nov 3, 2:31 pm, Chris Peters <ch...@clearcrystalmedia.com> wrote:
>
> > > This seems very odd to me. What do you get for #cgi.path_info#?
>
> > > On Tue, Nov 3, 2009 at 1:49 PM, Mike Henke <henkem...@gmail.com> wrote:
>
> > > > I upgraded to the newest release and I am still getting the wrong link
> > > > location with linkto for this situational.
>
> > > > On Nov 3, 11:40 am, Mike Henke <henkem...@gmail.com> wrote:
> > > > > Example:
>
> > > > > Server Path:
> > > > > C:\JRun4\servers\dev\cfusion.ear\cfusion.war\application\staging
>
> > > > > Actually URL (linkTo functions work fine):http://dev/application/staging
>
> > > > > Proxy redirect (or something I am not a network guy) to above URL
> > > >https://staging.com/application-loadsfinebut the LinkTo helper

Chris Peters

unread,
Nov 4, 2009, 4:16:51 PM11/4/09
to cfwh...@googlegroups.com
I'm wondering if it's a global default that can be set in config/settings.cfm:

<cfset set(functionName="linkTo", onlyPath="false")>

Give that a try and see if that overrides all of your linkTo's so you don't have to manually type it in every time you make a link.

Mike Henke

unread,
Nov 5, 2009, 2:25:19 PM11/5/09
to ColdFusion on Wheels
worked like a champ. thanks

On Nov 4, 4:16 pm, Chris Peters <ch...@clearcrystalmedia.com> wrote:
> I'm wondering if it's a global default that can be set in
> config/settings.cfm:
>
> <cfset set(functionName="linkTo", onlyPath="false")>
>
> Give that a try and see if that overrides all of your linkTo's so you don't
> have to manually type it in every time you make a link.
>
> On Wed, Nov 4, 2009 at 11:19 AM, Mike Henke <henkem...@gmail.com> wrote:
>
> > Add onlyPath="false", to the linkTo helpers.
>
> > On Nov 3, 2:31 pm, Chris Peters <ch...@clearcrystalmedia.com> wrote:
> > > This seems very odd to me. What do you get for #cgi.path_info#?
>
> > > On Tue, Nov 3, 2009 at 1:49 PM, Mike Henke <henkem...@gmail.com> wrote:
>
> > > > I upgraded to the newest release and I am still getting the wrong link
> > > > location with linkto for this situational.
>
> > > > On Nov 3, 11:40 am, Mike Henke <henkem...@gmail.com> wrote:
> > > > > Example:
>
> > > > > Server Path:
> > > > > C:\JRun4\servers\dev\cfusion.ear\cfusion.war\application\staging
>
> > > > > Actually URL (linkTo functions work fine):
> >http://dev/application/staging
>
> > > > > Proxy redirect (or something I am not a network guy) to above URL
> > > >https://staging.com/application-loadsfine but the LinkTo helper
Reply all
Reply to author
Forward
0 new messages