If you've wanted to jump to local pages, and you have some scripts that can't be easily edited to use <%if%> etc in the templates, you can edit the bottom of jump.pm to be:
($goto =~ m,^\w+://,) or ($goto = "http://$goto");
if ($goto eq 'http://' ) {
print $IN->redirect ("$CFG->{'db_cgi_url'}/detail_page.cgi?ID=$id" );
} elsif ($goto){
print $IN->redirect ($goto);
}
else {
What you do is change the ending if/else construct to add the elsif, and put the first test for the null "http://" or whatever you use.
That way, if jump.cgi is called, and the URL is just an internal reference, with a detail page, or long description, the call won't return an error.
If your scripts use the template parser, you can do the test in the templates, but I've hit a few cases where hard coding this behaviour saves a lot of editing templates.
And, if you eventually edit the templates, no foul, or harm done.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.
Code:
($goto =~ m,^\w+://,) or ($goto = "http://$goto");
if ($goto eq 'http://' ) {
print $IN->redirect ("$CFG->{'db_cgi_url'}/detail_page.cgi?ID=$id" );
} elsif ($goto){
print $IN->redirect ($goto);
}
else {
What you do is change the ending if/else construct to add the elsif, and put the first test for the null "http://" or whatever you use.
That way, if jump.cgi is called, and the URL is just an internal reference, with a detail page, or long description, the call won't return an error.
If your scripts use the template parser, you can do the test in the templates, but I've hit a few cases where hard coding this behaviour saves a lot of editing templates.
And, if you eventually edit the templates, no foul, or harm done.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.