[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] No CGI->{mv_nextpage} value in Autoload


On Apr 4, 2008, at 12:38 PM, Jon Jensen wrote:

> On Fri, 4 Apr 2008, Bill Carr wrote:
>
>> I have following in my catalog.cfg:
>> Autoload <<EOA
>> [perl global=1]
>> 	::logDebug('NEXTPAGE: ' . $CGI->{mv_nextpage});
>> [/perl]
>> EOA
>>
>> I don't get any value for $CGI->{mv_nextpage} in my debug log. I just
>> get 'NEXTPAGE:'.
>>
>> Any ideas why that could be or other ways to do page redirects within
>> Interchange? My example above is simplified. What I ultimately would
>> like to do is redirect to the home page of the site if the user is
>> following a link to an old obsolete page. The search engines have
>> links to pages we do not use anymore.
>
> Not sure if this is it, but worth a try: I believe $CGI is a Safe
> compartment construct. Try using $CGI::values{mv_nextpage} in global  
> code.
Thanks but it didn't work.

I'm using
if ($ENV{REQUEST_URI} =~  /^\/somepage$/) {
	$CGI->{mv_nextpage} = 'index';
}

and it's working.

Bill Carr
suppressed




_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.