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

Bill Carr bill at bottlenose-wine.com
Fri Apr 4 11:52:12 CDT 2008

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
bill at bottlenose-wine.com

More information about the interchange-users mailing list