Ok, this worked!
return "page.cgi?g=" . $url . "/" . $CFG->{build_index} . "&d=1";
} else {
return "/" . $url . "/" . $CFG->{build_index};
}
}
Where $url is the name of your category. Note, only works if category name = directory name.
Code:
sub {my $url = shift;if ($ENV{SCRIPT_FILENAME} =~ /page\.cgi/i) { return "page.cgi?g=" . $url . "/" . $CFG->{build_index} . "&d=1";
} else {
return "/" . $url . "/" . $CFG->{build_index};
}
}
Where $url is the name of your category. Note, only works if category name = directory name.