I am pretty sure that you need to look in
/farcry_core/tags/navajo/display.cfm

The else fires in the first conditional, trying to get your content,
returning it back as a struct.  However, the ID does not exist, so you come
up empty, causing the throw to fire.  This is caught, firing the cflocation.


<!--- grab the object we are displaying --->
<cftry>
        <cfif isDefined("stArchive")>
                <cfset stObj = duplicate(stArchive)>
        <cfelse>        
                <q4:contentobjectget objectid="#url.ObjectID#"
r_stobject="stObj">
        </cfif>
        
        <cftrace var="stobj.typename" text="object retrieved" />

        <!--- check that an appropriate result was returned from COAPI --->
        <cfif NOT IsStruct(stObj) OR StructIsEmpty(stObj)>
                <cfthrow
message="#application.adminBundle[session.dmProfile.locale].badCOAPI#">
        </cfif>
        <cfcatch type="Any">
                <cflocation url="#application.url.webroot#/" addtoken="No">
                <!--- $TODO:
                log this error if it occurs
                or perhaps provide URL 404 type error for user$
                --->
                <cfabort>
        </cfcatch>
</cftry> 


Scott Talsma 
CTO
echo.eleven
404.845.3458

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of elAdi
Sent: Thursday, February 15, 2007 8:11 PM
To: farcry-dev
Subject: [farcry-dev] Invalid ObjectID redirect


Hi all,

I'm currently working at the error handling of the site. I've got it all
under control with the FU's - creating a legacy system in the 404.cfm file -
and referring to a dmHTML page in case no legacy redirect has been found.

So, now if you enter a FU-like web-address to our site that doesn't exist,
it comes up with an internal 'Page can not be found' message.
However, if I enter an invalid link with an Object ID (i.e., /
index.cfm?objectID=B97AD400-E1C1-7510-8AE040B6FXXXXXX), the site
automatically gets redirected to the start page. We find this to be
confusing for the user and we'd rather redirect it to the 'page not found'
message as well.
But...after looking for that piece of code for a long time...I simply can
not find it. Can anyone point me in the right direction with this, the right
file respectively?

Thanks in advance.
Adrian






--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to