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

Stefan Hornburg (Racke) racke at linuxia.de
Fri Apr 4 13:10:12 CDT 2008

Bill Carr wrote:
> 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';
> }

I recommend to use $Session->{last_url} in Autoload. This works in
plain [perl] too.


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list