I usually use
 <a href="#cgi.server_name#/blog/entries.htm">...</a>

Which means the url will always be correct.

If you use your example below, and you have multiple domains pointing to the
same site (aliases), then if they are accessing your site form one of the
aliases they could be redirected to a different domain and will thus lose
their session.

Russ

-----Original Message-----
From: Ben Nadel [mailto:[EMAIL PROTECTED] 
Sent: 30 November 2006 20:53
To: CF-Talk
Subject: RE: Relative(document) vs site root paths

I am usually straight relative, but I am liking the idea (and thinking of
moving to) a programmatic, fully-qualified root:

<a href="#APPLICATION.Config.GetRootUrl()#blog/entries.htm">...</a>

Then, instead of hard coding the value returned by GetRootUrl(), that value
is "calculated" at application initialization to be something like
"http://www.bennadel.com/";. However, I would never HARD CODE that value as I
agree, why change everything later when some programming will take care of
the trick. 


.......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Kevin Aebig [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 10:53 AM
To: CF-Talk
Subject: RE: Relative(document) vs site root paths

I'm straight relative. I don't like the idea of rebuilding a crashed server
and trying to get all the mappings in place before anything works.

That decision also has a lot to do with the structure of the applications
here.

!k



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262321
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to